CN114205293B - Path determination method, device, electronic device and storage medium - Google Patents
Path determination method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN114205293B CN114205293B CN202111564597.9A CN202111564597A CN114205293B CN 114205293 B CN114205293 B CN 114205293B CN 202111564597 A CN202111564597 A CN 202111564597A CN 114205293 B CN114205293 B CN 114205293B
- Authority
- CN
- China
- Prior art keywords
- coloring information
- private network
- path
- service data
- network service
- 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
- 238000000034 method Methods 0.000 title claims abstract description 76
- 238000004040 coloring Methods 0.000 claims abstract description 321
- 239000012634 fragment Substances 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 14
- 238000013467 fragmentation Methods 0.000 claims description 5
- 238000006062 fragmentation reaction Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 abstract description 13
- 229920006235 chlorinated polyethylene elastomer Polymers 0.000 description 14
- 238000010586 diagram Methods 0.000 description 11
- 101100317152 Oryza sativa subsp. japonica VPE1 gene Proteins 0.000 description 8
- 101100042631 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) SIN3 gene Proteins 0.000 description 7
- 101100069417 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GRE1 gene Proteins 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 5
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 5
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 238000000136 cloud-point extraction Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
Classifications
-
- 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/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2441—Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及通信技术领域,尤其涉及一种路径确定方法、装置、电子设备及存储介质。The present invention relates to the field of communication technology, and in particular to a path determination method, device, electronic device and storage medium.
背景技术Background technique
一般地,为业务流量定制分段路由(segment routing,SR)端到端路径需要通过在用户侧的设备(Customer Provide Edge,CPE)着色来实现。但是在传统软件定义的广域网(Software Defined Wide Area Network,SD-WAN)场景中,虚拟网络侧边缘设备(VirtualProvide Edge,VPE)与VPE之间一般通过边界网关协议(Border Gateway Protocol,BGP)打通,传统BGP会造成业务流量在传输过程中丢失CPE侧着色信息。Generally, customizing the segment routing (SR) end-to-end path for business traffic needs to be achieved through coloring on the customer-side device (Customer Provide Edge, CPE). However, in the traditional Software Defined Wide Area Network (SD-WAN) scenario, the virtual network side edge device (Virtual Provide Edge, VPE) and VPE are generally connected through the Border Gateway Protocol (Border Gateway Protocol, BGP). Traditional BGP will cause the business traffic to lose the CPE side coloring information during transmission.
在现有的兼容方案中,一般需要在VPE上重新配置流分类策略,以恢复CPE着色信息。但是,这种兼容方案,会导致在VPE上配置大量的流分类策略,不适用于大量业务扩展的场景。In the existing compatible solution, it is generally necessary to reconfigure the flow classification policy on the VPE to restore the CPE coloring information. However, this compatible solution will result in a large number of flow classification policies being configured on the VPE, which is not suitable for scenarios where a large number of services are expanded.
发明内容Summary of the invention
本发明提供一种路径确定方法、装置、电子设备及存储介质,用以解决现有技术中传统BGP会造成业务流量在传输过程中丢失CPE侧着色信息的缺陷,实现在跨传统BGP场景中不会丢失CPE侧着色信息。The present invention provides a path determination method, device, electronic device and storage medium, which are used to solve the defect in the prior art that traditional BGP will cause the loss of CPE side coloring information during the transmission of business traffic, and achieve that the CPE side coloring information will not be lost in the cross-traditional BGP scenario.
第一方面,本发明提供一种路径确定方法,包括:In a first aspect, the present invention provides a path determination method, comprising:
第一节点确定私网业务数据的着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;The first node determines coloring information of the private network service data, where the coloring information is used to characterize a quality requirement type of the private network service data;
基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,其中,所述目标路径为所述私网业务数据在公网传输的端到端分段路由SR路径,所述第一报文中的私网网际互连协议IP头的预设扩展选项中包括所述着色信息。Based on the coloring information, a target path of a first message carrying the private network service data is determined, wherein the target path is an end-to-end segment routing (SR) path for transmitting the private network service data in a public network, and a preset extension option of a private network Internet Protocol (IP) header in the first message includes the coloring information.
可选地,根据本发明提供的一种路径确定方法,所述预设扩展选项中包括内容自定义项,所述内容自定义项用于承载所述着色信息。Optionally, according to a path determination method provided by the present invention, the preset extension options include content customization items, and the content customization items are used to carry the coloring information.
可选地,根据本发明提供的一种路径确定方法,所述基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,包括:Optionally, according to a path determination method provided by the present invention, determining a target path of the first message carrying the private network service data based on the coloring information includes:
基于所述着色信息,在候选SR路径集合中,确定与所述着色信息相对应的所述目标路径;Based on the coloring information, determining the target path corresponding to the coloring information in a set of candidate SR paths;
其中,所述候选SR路径集合包括至少一条SR路径,其中每一条SR路径对应各自的着色信息。The candidate SR path set includes at least one SR path, wherein each SR path corresponds to respective coloring information.
可选地,根据本发明提供的一种路径确定方法,所述确定私网业务数据的着色信息,包括:Optionally, according to a path determination method provided by the present invention, determining the coloring information of the private network service data includes:
基于所述私网业务数据的质量要求类型,确定所述着色信息。The coloring information is determined based on the quality requirement type of the private network service data.
可选地,根据本发明提供的一种路径确定方法,在所述基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径之后,所述方法还包括:Optionally, according to a path determination method provided by the present invention, after determining the target path of the first message carrying the private network service data based on the coloring information, the method further includes:
基于所述目标路径,发送所述第一报文。Based on the target path, the first message is sent.
可选地,根据本发明提供的一种路径确定方法,所述预设扩展选项中包括着色信息复制项,所述着色信息复制项的取值为第一取值,所述第一取值用于指示在所述第一报文的分片的预设扩展选项中复制所述第一报文的着色信息。Optionally, according to a path determination method provided by the present invention, the preset extended option includes a coloring information copy item, the value of the coloring information copy item is a first value, and the first value is used to indicate that the coloring information of the first message is copied in the preset extended option of the fragment of the first message.
第二方面,本发明还提供一种路径确定方法,包括:In a second aspect, the present invention further provides a path determination method, comprising:
第二节点基于接收到的携带有私网业务数据的第一报文,获取着色信息,其中,所述第一报文中的私网IP头的预设扩展选项中包括所述着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;The second node obtains coloring information based on the received first message carrying the private network service data, wherein the preset extension option of the private network IP header in the first message includes the coloring information, and the coloring information is used to characterize the quality requirement type of the private network service data;
基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,其中,所述第二报文中的私网IP头是基于所述第一报文中的私网IP头确定的,所述目标路径为所述私网业务数据在公网传输的端到端SR路径。Based on the coloring information, determine the target path of the second message carrying the private network service data, wherein the private network IP header in the second message is determined based on the private network IP header in the first message, and the target path is the end-to-end SR path for transmitting the private network service data in the public network.
可选地,根据本发明提供的一种路径确定方法,所述预设扩展选项中包括内容自定义项,所述内容自定义项用于承载所述着色信息。Optionally, according to a path determination method provided by the present invention, the preset extension options include content customization items, and the content customization items are used to carry the coloring information.
可选地,根据本发明提供的一种路径确定方法,所述基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,包括:Optionally, according to a path determination method provided by the present invention, determining a target path of the second message carrying the private network service data based on the coloring information includes:
基于所述着色信息,在候选SR路径集合中,确定与所述着色信息相对应的所述目标路径;Based on the coloring information, determining the target path corresponding to the coloring information in a set of candidate SR paths;
其中,所述候选SR路径集合包括至少一条SR路径,其中每一条SR路径对应各自的着色信息。The candidate SR path set includes at least one SR path, wherein each SR path corresponds to respective coloring information.
可选地,根据本发明提供的一种路径确定方法,在所述基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径之后,所述方法还包括:Optionally, according to a path determination method provided by the present invention, after determining the target path of the second message carrying the private network service data based on the coloring information, the method further includes:
基于所述目标路径,发送所述第二报文。Based on the target path, the second message is sent.
可选地,根据本发明提供的一种路径确定方法,所述预设扩展选项中包括着色信息复制项,所述着色信息复制项的取值为第一取值,所述第一取值用于指示在所述第一报文的分片的预设扩展选项中复制所述第一报文的着色信息。Optionally, according to a path determination method provided by the present invention, the preset extended option includes a coloring information copy item, the value of the coloring information copy item is a first value, and the first value is used to indicate that the coloring information of the first message is copied in the preset extended option of the fragment of the first message.
第三方面,本发明还提供一种路径确定装置,包括:In a third aspect, the present invention further provides a path determination device, comprising:
第一确定模块,用于确定私网业务数据的着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;A first determination module, used to determine coloring information of the private network service data, where the coloring information is used to characterize a quality requirement type of the private network service data;
第二确定模块,用于基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,其中,所述目标路径为所述私网业务数据在公网传输的端到端分段路由SR路径,所述第一报文中的私网网际互连协议IP头的预设扩展选项中包括所述着色信息。The second determination module is used to determine a target path of a first message carrying the private network service data based on the coloring information, wherein the target path is an end-to-end segment routing (SR) path for transmitting the private network service data in a public network, and a preset extension option of a private network Internet Protocol (IP) header in the first message includes the coloring information.
第四方面,本发明还提供一种路径确定装置,包括:In a fourth aspect, the present invention further provides a path determination device, comprising:
获取模块,用于基于接收到的携带有私网业务数据的第一报文,获取着色信息,其中,所述第一报文中的私网IP头的预设扩展选项中包括所述着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;An acquisition module, configured to acquire coloring information based on a received first message carrying private network service data, wherein a preset extension option of a private network IP header in the first message includes the coloring information, and the coloring information is used to characterize a quality requirement type of the private network service data;
第三确定模块,用于基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,其中,所述第二报文中的私网IP头是基于所述第一报文中的私网IP头确定的,所述目标路径为所述私网业务数据在公网传输的端到端SR路径。The third determination module is used to determine the target path of the second message carrying the private network service data based on the coloring information, wherein the private network IP header in the second message is determined based on the private network IP header in the first message, and the target path is the end-to-end SR path for transmitting the private network service data in the public network.
第五方面,本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述路径确定方法的步骤。In a fifth aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned path determination methods are implemented.
第六方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述路径确定方法的步骤。In a sixth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described path determination methods.
第七方面,本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述路径确定方法的步骤。In a seventh aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned path determination methods.
本发明提供的路径确定方法、装置、电子设备及存储介质,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,可以使得公网中转发路径上的节点可以识别预设扩展选项中的着色信息以及基于着色信息确定满足私网业务数据的质量要求的目标路径,可以实现在不另外配置的流分类策略的情况下,完成数据的传输并满足业务数据的质量要求,避免了在VPE上配置大量的流分类策略,可以适用于大量业务扩展场景。The path determination method, device, electronic device and storage medium provided by the present invention can enable nodes on the forwarding path in the public network to identify the coloring information in the preset extension option and determine the target path that meets the quality requirements of the private network service data based on the coloring information by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option. It can achieve data transmission and meet the quality requirements of the service data without configuring a separate flow classification strategy, avoids configuring a large number of flow classification strategies on the VPE, and can be applicable to a large number of service expansion scenarios.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1是相关技术提供的SD-WAN的结构示意图;FIG1 is a schematic diagram of the structure of an SD-WAN provided by a related art;
图2是本发明提供的路径确定方法的流程示意图之一;FIG2 is a schematic diagram of a flow chart of a path determination method provided by the present invention;
图3是本发明提供的路径确定方法的流程示意图之二;FIG3 is a second flow chart of the path determination method provided by the present invention;
图4是本发明提供的私网业务数据在公网传输的端到端SR路径示意图;4 is a schematic diagram of an end-to-end SR path for private network service data transmitted over a public network provided by the present invention;
图5是本发明提供的路径确定装置的结构示意图之一;FIG5 is a schematic diagram of a structure of a path determination device provided by the present invention;
图6是本发明提供的路径确定装置的结构示意图之二;FIG6 is a second schematic diagram of the structure of the path determination device provided by the present invention;
图7是本发明提供的电子设备的结构示意图。FIG. 7 is a schematic diagram of the structure of an electronic device provided by the present invention.
具体实施方式Detailed ways
为了便于更加清晰地理解本申请各实施例,首先对一些相关的背景知识进行如下介绍。In order to facilitate a clearer understanding of the embodiments of the present application, some relevant background knowledge is first introduced as follows.
图1是相关技术提供的SD-WAN的结构示意图,如图1所示,在SD-WAN场景下,控制器收集并计算网络切片拓扑。当CPE与CPE之间需要业务互通时,控制器根据业务的质量要求定制计算CPE端到端的SR路径。CPE与CPE之间端到端SR是逻辑网络(overlay)层的路径,采用用户数据包协议(User Datagram Protocol,UDP)层的SR方案(UDP-SR)实现,即端到端SR路径在UDP层实现用户侧设备的端到端SR控制。参考传统选路原则(SR Policy)着色引流方案,在UDP-SR方案中,业务的质量要求也通过在CPE上对业务流量着色来实现。Figure 1 is a structural diagram of the SD-WAN provided by the relevant technology. As shown in Figure 1, in the SD-WAN scenario, the controller collects and calculates the network slice topology. When service intercommunication is required between CPEs, the controller customizes and calculates the CPE end-to-end SR path according to the service quality requirements. The end-to-end SR between CPEs is a path at the logical network (overlay) layer, which is implemented using the SR solution (UDP-SR) of the User Datagram Protocol (UDP) layer, that is, the end-to-end SR path implements end-to-end SR control of user-side devices at the UDP layer. Referring to the traditional routing principle (SR Policy) coloring and diversion solution, in the UDP-SR solution, the service quality requirements are also implemented by coloring the service traffic on the CPE.
图1中的CPE一般用于接入用户,可以是接入终端用户的交换机、路由器或路由交换机等设备,一般而言,CPE设备具备丰富的接口,能够接入各种设备,但是数据处理能力不需要特别强。The CPE in Figure 1 is generally used to access users and can be a switch, router, or routing switch that accesses terminal users. Generally speaking, CPE devices have rich interfaces and can access various devices, but the data processing capabilities do not need to be particularly strong.
图1中的网络侧边缘设备(Provide Edge,PE),通常要求具备封装与解封装能力,一般而言,PE设备是汇聚层设备,接入的是经过CPE设备处理之后的数据。The network-side Provide Edge (PE) device in Figure 1 is usually required to have encapsulation and decapsulation capabilities. Generally speaking, the PE device is a convergence layer device that accesses data that has been processed by the CPE device.
图1中的VPE,类似传统的PE设备,表示虚拟的PE设备,可以是一个虚拟机。The VPE in FIG1 is similar to a traditional PE device and represents a virtual PE device, which may be a virtual machine.
在UDP-SR方案中,业务根据服务等级协议(Service Level Agreement,SLA)质量属性定制端到端SR路径功能,是通过着色承载的,不同质量要求对应不同的颜色。颜色即是业务私网路由的属性,传统路由属性是放在网际互连协议(Internet Protocol,IP)头中。In the UDP-SR solution, the service customizes the end-to-end SR path function according to the service level agreement (SLA) quality attributes, which is carried out through coloring, with different quality requirements corresponding to different colors. The color is the attribute of the service private network routing, and the traditional routing attribute is placed in the Internet Protocol (IP) header.
为了克服上述缺陷,本发明提供一种路径确定方法、装置、电子设备及存储介质,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,避免了在跨传统BGP场景中丢失CPE侧着色信息。In order to overcome the above-mentioned defects, the present invention provides a path determination method, device, electronic device and storage medium, which avoids the loss of CPE side coloring information in cross-traditional BGP scenarios by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option.
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
下面结合附图描述本发明的路径确定方法及装置。The path determination method and device of the present invention are described below with reference to the accompanying drawings.
图2是本发明提供的路径确定方法的流程示意图之一,如图2所示,本发明提供一种路径确定方法,其执行主体可以为第一节点,第一节点可以是端到端分段路由SR路径中的头端节点,例如CPE设备等。该方法包括:FIG2 is one of the flow charts of the path determination method provided by the present invention. As shown in FIG2 , the present invention provides a path determination method, the execution subject of which may be a first node, and the first node may be a head-end node in an end-to-end segment routing SR path, such as a CPE device, etc. The method includes:
步骤201,第一节点确定私网业务数据的着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;Step 201: The first node determines coloring information of private network service data, where the coloring information is used to characterize a quality requirement type of the private network service data.
具体地,第一节点在确定私网业务数据的目标路径之前,可以先确定私网业务数据的着色信息,其中着色信息可以用于表征所述私网业务数据的质量要求类型。Specifically, before determining the target path of the private network service data, the first node may first determine the coloring information of the private network service data, wherein the coloring information may be used to characterize the quality requirement type of the private network service data.
例如,第一节点可以确定私网业务数据的着色信息为红色(red),着色信息red可以用于表征私网业务数据的质量要求类型为延时最低,本发明对此不作限定;For example, the first node may determine that the coloring information of the private network service data is red. The coloring information red may be used to indicate that the quality requirement type of the private network service data is the lowest delay, which is not limited in the present invention.
例如,第一节点可以确定私网业务数据的着色信息为绿色(green),着色信息green可以用于表征私网业务数据的质量要求类型为带宽最大,本发明对此不作限定;For example, the first node may determine that the coloring information of the private network service data is green. The coloring information green may be used to indicate that the quality requirement type of the private network service data is the maximum bandwidth. The present invention does not limit this.
例如,第一节点可以确定私网业务数据的着色信息为黄色(yellow),着色信息yellow可以用于表征私网业务数据的质量要求类型为可靠性最高,本发明对此不作限定。For example, the first node may determine that the coloring information of the private network service data is yellow. The coloring information yellow may be used to indicate that the quality requirement type of the private network service data is the highest reliability, which is not limited in the present invention.
步骤202,基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,其中,所述目标路径为所述私网业务数据在公网传输的端到端分段路由SR路径,所述第一报文中的私网网际互连协议IP头的预设扩展选项中包括所述着色信息。Step 202: Based on the coloring information, determine a target path of a first message carrying the private network service data, wherein the target path is an end-to-end segment routing (SR) path for transmitting the private network service data in a public network, and a preset extension option of a private network Internet Protocol (IP) header in the first message includes the coloring information.
具体地,第一节点在确定私网业务数据的着色信息之后,可以基于该着色信息确定传输该私网业务数据的目标路径,并可以将该着色信息携带在第一报文的私网IP头的预设扩展选项中,按照目标路径发送第一报文,可以使得转发路径中的节点识别出预设扩展选项中的着色信息,并可以基于着色信息确定目标路径。Specifically, after determining the coloring information of the private network service data, the first node can determine the target path for transmitting the private network service data based on the coloring information, and can carry the coloring information in the preset extended option of the private network IP header of the first message, and send the first message according to the target path, so that the nodes in the forwarding path can recognize the coloring information in the preset extended option, and can determine the target path based on the coloring information.
可以理解的是,由于目标路径是基于着色信息确定的,目标路径能够满足私网业务数据所需的质量要求。It can be understood that, since the target path is determined based on the coloring information, the target path can meet the quality requirements required by the private network service data.
例如,在着色信息为红色red,且着色信息red可以用于表征私网业务数据的质量要求类型为延时最低,进而可以确定目标路径为能够满足私网业务数据所需的延时最低要求的路径;其中,在能够满足私网业务数据所需的延时最低要求的路径为多条的情况下,可以确定目标路径为其中延时最低的一条或者为其中任意一条或者为其中预设的一条;本发明对此不做限定;For example, when the coloring information is red, and the coloring information red can be used to indicate that the quality requirement type of the private network service data is the minimum delay, the target path can be determined to be a path that can meet the minimum delay requirement required by the private network service data; wherein, when there are multiple paths that can meet the minimum delay requirement required by the private network service data, the target path can be determined to be the one with the lowest delay, any one of them, or a preset one; the present invention is not limited to this;
例如,在着色信息为绿色green,且着色信息green可以用于表征私网业务数据的质量要求类型为带宽最大,进而可以确定目标路径能够满足私网业务数据所需的带宽最大要求的路径;其中,在能够满足私网业务数据所需的带宽最大要求的路径为多条的情况下,可以确定目标路径为其中带宽最大的一条或者为其中任意一条或者为其中预设的一条;本发明对此不做限定;For example, when the coloring information is green, and the coloring information green can be used to indicate that the quality requirement type of the private network service data is the maximum bandwidth, then the target path can be determined to be a path that can meet the maximum bandwidth requirement of the private network service data; wherein, when there are multiple paths that can meet the maximum bandwidth requirement of the private network service data, the target path can be determined to be the one with the largest bandwidth, any one of them, or a preset one of them; the present invention is not limited to this;
例如,在着色信息为黄色yellow,且着色信息yellow可以用于表征私网业务数据的质量要求类型为可靠性最高,进而可以确定目标路径能够满足私网业务数据所需的可靠性最高要求的路径,其中,在能够满足私网业务数据所需的可靠性最高要求的路径为多条的情况下,可以确定目标路径为其中可靠性最高的一条或者为其中任意一条或者为其中预设的一条;本发明对此不做限定。For example, when the coloring information is yellow, and the coloring information yellow can be used to characterize that the quality requirement type of the private network service data is the highest reliability, then the target path can be determined to be a path that can meet the highest reliability requirement required by the private network service data. Among them, when there are multiple paths that can meet the highest reliability requirement required by the private network service data, the target path can be determined to be the one with the highest reliability, any one of them, or a preset one; the present invention is not limited to this.
本发明提供的路径确定方法,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,可以使得公网中转发路径上的节点可以识别预设扩展选项中的着色信息以及基于着色信息确定满足私网业务数据的质量要求的目标路径,可以实现在不另外配置的流分类策略的情况下,完成数据的传输并满足业务数据的质量要求,避免了在VPE上配置大量的流分类策略,可以适用于大量业务扩展场景。The path determination method provided by the present invention, by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option, can enable the nodes on the forwarding path in the public network to identify the coloring information in the preset extension option and determine the target path that meets the quality requirements of the private network service data based on the coloring information. It can achieve data transmission and meet the quality requirements of the service data without configuring a separate flow classification strategy, avoids configuring a large number of flow classification strategies on the VPE, and can be applicable to a large number of service expansion scenarios.
可选地,所述预设扩展选项中包括内容自定义项,所述内容自定义项用于承载所述着色信息。Optionally, the preset extension options include content customization items, and the content customization items are used to carry the coloring information.
可选地,预设扩展选项可以包括多个比特位,内容自定义项可以对应这多个比特位中连续的若干比特位。Optionally, the preset extension option may include multiple bits, and the content customization item may correspond to a plurality of consecutive bits among the multiple bits.
例如,预设扩展选项可以包括8个比特位,内容自定义项可以对应这8个比特位中连续的2个比特位,则内容自定义项的取值可以是00、01、10或11,进而内容自定义项的取值范围可以为0-3的正整数。For example, the preset extended option may include 8 bits, and the content customization item may correspond to 2 consecutive bits of the 8 bits. The value of the content customization item may be 00, 01, 10 or 11, and the value range of the content customization item may be a positive integer of 0-3.
例如,预设扩展选项可以包括8个比特位,内容自定义项可以对应这8个比特位中连续的3个比特位,则内容自定义项的取值可以是000、001、010、011、100、101、110或111,进而内容自定义项的取值范围可以为0-7的正整数;For example, the preset extended option may include 8 bits, and the content customization item may correspond to 3 consecutive bits of the 8 bits. Then, the value of the content customization item may be 000, 001, 010, 011, 100, 101, 110 or 111, and the value range of the content customization item may be a positive integer of 0-7;
例如,预设扩展选项可以包括8个比特位,内容自定义项可以对应这8个比特位中连续的4个比特位,进而内容自定义项的取值范围可以为0-15的正整数。For example, the preset extended option may include 8 bits, and the content customization item may correspond to 4 consecutive bits of the 8 bits, and thus the value range of the content customization item may be a positive integer of 0-15.
例如,预设扩展选项可以包括8个比特位,内容自定义项可以对应这8个比特位中连续的5个比特位,进而内容自定义项的取值范围可以为0-31的正整数。For example, the preset extension option may include 8 bits, and the content customization item may correspond to 5 consecutive bits of the 8 bits, and the value range of the content customization item may be a positive integer of 0-31.
例如,预设扩展选项可以包括10个比特位,内容自定义项可以对应这10个比特位中连续的4个比特位,进而内容自定义项的取值范围可以为0-15的正整数。For example, the preset extended options may include 10 bits, and the content customization item may correspond to 4 consecutive bits of the 10 bits, and the value range of the content customization item may be a positive integer of 0-15.
例如,预设扩展选项可以包括10个比特位,内容自定义项可以对应这10个比特位中连续的5个比特位,进而内容自定义项的取值范围可以为0-31的正整数。For example, the preset extended option may include 10 bits, and the content customization item may correspond to 5 consecutive bits of the 10 bits, and the value range of the content customization item may be a positive integer of 0-31.
例如,在内容自定义项为2个比特位的情况下,内容自定义项的取值00可以表示着色信息红色red,内容自定义项的取值01可以表示着色信息绿色green,内容自定义项的取值10可以表示着色信息黄色yellow。For example, when the content customization item is 2 bits, the value 00 of the content customization item can represent the coloring information red, the value 01 of the content customization item can represent the coloring information green, and the value 10 of the content customization item can represent the coloring information yellow.
例如,在内容自定义项为3个比特位的情况下,内容自定义项的取值000可以表示着色信息红色red,内容自定义项的取值001可以表示着色信息绿色green,内容自定义项的取值010可以表示着色信息黄色yellow等等。For example, when the content customization item is 3 bits, the value 000 of the content customization item can represent the coloring information red, the value 001 of the content customization item can represent the coloring information green, the value 010 of the content customization item can represent the coloring information yellow, and so on.
可选地,协议可以规定第一报文的报文头的扩展项包括内容自定义项,且规定该内容自定义项的比特数,但不规定其具体包括的内容,因此本发明可以对内容自定义项中具体包括的内容进行限定,比如可以限定内容自定义项中的内容具体用于指示着色信息,该着色信息可以表征私网业务数据的质量要求类型。Optionally, the protocol may specify that the extension item of the message header of the first message includes a content customization item, and specifies the number of bits of the content customization item, but does not specify the specific content included therein. Therefore, the present invention may limit the specific content included in the content customization item. For example, the content in the content customization item may be limited to be specifically used to indicate coloring information, and the coloring information may characterize the quality requirement type of private network service data.
例如,以协议RFC7126为例,预设扩展选项可以是8个比特位,内容自定义项可以是数值Number项,进而Number项可以对应这8个比特位中的5个比特位,进而Number项的取值范围可以为0-31的正整数。For example, taking the protocol RFC7126 as an example, the preset extension option can be 8 bits, the content customization item can be a numerical Number item, and the Number item can correspond to 5 bits of the 8 bits, and the value range of the Number item can be a positive integer of 0-31.
需要说明的是,任意与协议RFC7126类似的协议均适用于本发明;It should be noted that any protocol similar to the RFC7126 protocol is applicable to the present invention;
需要说明的是,任意存在报文的传输,且报文的包头存在可自定义内容的预设扩展项的场景,均适用于本发明,其中可自定义内容的预设扩展项对应本发明中的内容自定义项;It should be noted that any scenario in which there is message transmission and there are preset extension items of customizable content in the packet header of the message is applicable to the present invention, wherein the preset extension items of customizable content correspond to the content customization items in the present invention;
需要说明的是,以上多个例子仅作为对本发明的举例说明,不作为对本发明的限定。It should be noted that the above examples are only intended to illustrate the present invention and are not intended to limit the present invention.
因此,第一节点可以将着色信息存储在内容自定义项中,按照目标路径发送第一报文,可以使得转发路径中的节点识别内容自定义项中的着色信息,并基于着色信息确定目标路径,并基于目标路径执行第一报文的传输。Therefore, the first node can store the coloring information in the content customization item and send the first message according to the target path, so that the nodes in the forwarding path can recognize the coloring information in the content customization item, determine the target path based on the coloring information, and execute the transmission of the first message based on the target path.
可选地,所述基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,包括:Optionally, determining, based on the coloring information, a target path of the first message carrying the private network service data includes:
基于所述着色信息,在候选SR路径集合中,确定与所述着色信息相对应的所述目标路径;Based on the coloring information, determining the target path corresponding to the coloring information in a set of candidate SR paths;
其中,所述候选SR路径集合包括至少一条SR路径,其中每一条SR路径对应各自的着色信息。The candidate SR path set includes at least one SR path, wherein each SR path corresponds to respective coloring information.
具体地,第一节点可以持有候选SR路径集合,候选SR路径集合可以包括一条或多条SR路径,其中每一条SR路径对应各自的着色信息,进而第一节点可以基于着色信息在候选SR路径集合中确定目标路径。Specifically, the first node may hold a candidate SR path set, which may include one or more SR paths, each of which corresponds to respective coloring information, and the first node may determine a target path in the candidate SR path set based on the coloring information.
可选地,候选SR路径集合中的任一条SR路径可以对应一种着色信息,也可以对应多种着色信息。Optionally, any SR path in the candidate SR path set may correspond to one coloring information or may correspond to multiple coloring information.
可选地,第一节点可以从SD-WAN系统中的控制器获取候选SR路径集合。Optionally, the first node may obtain a set of candidate SR paths from a controller in the SD-WAN system.
因此,第一节点可以基于着色信息,在候选SR路径集合中确定目标路径,进而可以基于目标路径发送第一报文。Therefore, the first node may determine the target path in the candidate SR path set based on the coloring information, and further may send the first message based on the target path.
可选地,所述确定私网业务数据的着色信息,包括:Optionally, the determining of coloring information of the private network service data includes:
基于所述私网业务数据的质量要求类型,确定所述着色信息。The coloring information is determined based on the quality requirement type of the private network service data.
可选地,第一节点可以基于私网业务数据默认对应的质量要求类型,确定着色信息。Optionally, the first node may determine the coloring information based on a quality requirement type corresponding to the private network service data by default.
例如,在私网业务数据为虚拟现实(Virtual Reality,VR)业务数据的情况下,VR业务数据可以默认对应质量要求类型为低时延,进而第一节点可以确定表征延时最低的着色信息为VR业务数据的着色信息。For example, when the private network service data is virtual reality (VR) service data, the VR service data can default to a corresponding quality requirement type of low latency, and then the first node can determine that the coloring information representing the lowest latency is the coloring information of the VR service data.
可选地,第一节点可以基于私网业务数据的特殊指示,确定着色信息。Optionally, the first node may determine the coloring information based on a special indication of the private network service data.
例如,在私网业务数据指示质量要求类型为带宽最大的情况下,第一节点可以确定表征带宽最大的着色信息为该私网业务数据的着色信息。For example, when the quality requirement type indicated by the private network service data is maximum bandwidth, the first node may determine that the coloring information representing the maximum bandwidth is the coloring information of the private network service data.
因此,第一节点可以基于私网业务数据的质量要求类型确定着色信息,使得着色信息可以表示私网业务数据所需的质量要求,进而第一节点可以基于着色信息确定目标路径。Therefore, the first node can determine the coloring information based on the quality requirement type of the private network service data, so that the coloring information can represent the quality requirement required for the private network service data, and then the first node can determine the target path based on the coloring information.
可选地,在所述基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径之后,所述方法还包括:Optionally, after determining the target path of the first message carrying the private network service data based on the coloring information, the method further includes:
基于所述目标路径,发送所述第一报文。Based on the target path, the first message is sent.
具体地,第一节点在确定传输私网业务数据的目标路径之后,可以基于该目标路径,发送第一报文。Specifically, after determining the target path for transmitting the private network service data, the first node may send the first message based on the target path.
可选地,基于目标路径,第一节点可以确定发送私网业务数据的出接口,进而可以通过该出接口发送第一报文。Optionally, based on the target path, the first node may determine an outbound interface for sending the private network service data, and then may send the first message through the outbound interface.
例如,基于目标路径,第一节点可以确定发送私网业务数据的出接口为通用路由封装(Generic Routing Encapsulation,GRE)接口,具体可以为GRE1接口,进而可以通过GRE1发送第一报文。For example, based on the target path, the first node may determine that the outgoing interface for sending the private network service data is a Generic Routing Encapsulation (GRE) interface, specifically a GRE1 interface, and then the first message may be sent through GRE1.
可选地,所述预设扩展选项中包括着色信息复制项,所述着色信息复制项的取值为第一取值,所述第一取值用于指示在所述第一报文的分片的预设扩展选项中复制所述第一报文的着色信息。Optionally, the preset extended option includes a coloring information copy item, and the value of the coloring information copy item is a first value, and the first value is used to indicate that the coloring information of the first message is copied in the preset extended option of the fragment of the first message.
具体地,目标路径中的节点可以对私网业务数据进行IP分片处理,着色信息复制项取值为第一取值可以指示IP分片都需要复制该预设扩展选项,进而IP分片中也会携带预设扩展选项中的着色信息,进而接收到该IP分片的节点也可以基于着色信息确定目标路径。Specifically, the nodes in the target path can perform IP fragmentation on private network service data. The value of the coloring information copy item is the first value, which can indicate that the IP fragments need to copy the preset extension option, and then the IP fragments will also carry the coloring information in the preset extension option, and then the node that receives the IP fragment can also determine the target path based on the coloring information.
可选地,协议可以规定第一报文的报文头的扩展项包括一复制项,且规定该复制项的比特数,以及该复制项的内容,可以取值为第一取值或第二取值;但不规定其取值为第一取值时具体用于复制什么内容或其取值为第二取值时具体用于复制什么内容;因此本发明可以限定该复制项用于复制着色信息,即可以称为着色信息复制项;进而,本发明可以限定,在着色信息复制项的取值为第一取值时可以指示IP分片都需要复制该预设扩展选项,进而IP分片中也会携带预设扩展选项中的着色信息,进而接收到该IP分片的节点也可以基于着色信息确定目标路径。Optionally, the protocol may specify that the extension item of the message header of the first message includes a copy item, and specifies the number of bits of the copy item, and the content of the copy item, which can take a first value or a second value; but does not specify what specific content is used to copy when it takes the first value or what specific content is used to copy when it takes the second value; therefore, the present invention can limit the copy item to copy coloring information, that is, it can be called a coloring information copy item; further, the present invention can limit that when the value of the coloring information copy item is the first value, it can indicate that the IP fragments need to copy the preset extended option, and then the IP fragments will also carry the coloring information in the preset extended option, and then the node that receives the IP fragment can also determine the target path based on the coloring information.
可选地,私网IP头的预设扩展选项可以是在私网IP头中新增的Color Option选项,Color Option选项中可以包括着色信息复制项、类别项和内容自定义项。Optionally, the preset extended option of the private network IP header may be a Color Option option newly added in the private network IP header, and the Color Option option may include a coloring information copy item, a category item, and a content customization item.
例如,以协议RFC7126为例,Color Option选项中的着色信息复制项可以是Copy项,Color Option选项中的类别项可以是Class项,Color Option选项中的内容自定义项可以是Number项。For example, taking the protocol RFC7126 as an example, the coloring information copy item in the Color Option option may be a Copy item, the category item in the Color Option option may be a Class item, and the content customization item in the Color Option option may be a Number item.
可选地,第一取值可以为1,标志IP分片都需要复制该Color Option选项,类别项可以取值为1,标志预留段。Optionally, the first value may be 1, indicating that all IP fragments need to copy the Color Option option, and the category item may be 1, indicating a reserved segment.
可选地,Color Option选项可以包括8个比特位,着色信息复制项可以对应1个比特位,类别项可以对应2个比特位,内容自定义项可以对应5个比特位。Optionally, the Color Option option may include 8 bits, the coloring information copy item may correspond to 1 bit, the category item may correspond to 2 bits, and the content customization item may correspond to 5 bits.
例如,Color Option选项8个比特位字段命名name可以为color,在着色信息复制项取值为1,类别项取值为1且内容自定义项取值为1的情况下,Color Option选项的取值value为161,如下表1所示。For example, the 8-bit field name of the Color Option option can be color. When the coloring information copy item value is 1, the category item value is 1, and the content customization item value is 1, the value of the Color Option option is 161, as shown in Table 1 below.
表1Table 1
因此,第一节点可以将着色信息复制项的值设置为第一取值,按照目标路径发送第一报文,可以使得转发路径中的节点识别着色信息复制项的指示信息,进而转发路径中的节点在进行IP分片时会将预设扩展选项中的着色信息携带在IP分片中,保证接收IP分片的节点也可以基于着色信息确定目标路径。Therefore, the first node can set the value of the coloring information copy item to the first value and send the first message according to the target path, so that the nodes in the forwarding path can recognize the indication information of the coloring information copy item. Then, when performing IP fragmentation, the nodes in the forwarding path will carry the coloring information in the preset extended option in the IP fragment, thereby ensuring that the node receiving the IP fragment can also determine the target path based on the coloring information.
图3是本发明提供的路径确定方法的流程示意图之二,如图3所示,本发明提供一种路径确定方法,其执行主体可以为第二节点,第二节点可以是端到端分段路由SR路径中的中间节点或尾端节点,例如VPE设备或CPE设备等。该方法包括:FIG3 is a second flow chart of the path determination method provided by the present invention. As shown in FIG3, the present invention provides a path determination method, the execution subject of which may be a second node, and the second node may be an intermediate node or a tail node in an end-to-end segment routing SR path, such as a VPE device or a CPE device. The method includes:
步骤301,第二节点基于接收到的携带有私网业务数据的第一报文,获取着色信息,其中,所述第一报文中的私网IP头的预设扩展选项中包括所述着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;Step 301: The second node obtains coloring information based on a received first message carrying private network service data, wherein a preset extension option of a private network IP header in the first message includes the coloring information, and the coloring information is used to characterize a quality requirement type of the private network service data;
具体地,由于第一报文中携带有着色信息,第二节点在接收到第一报文之后,可以获取到着色信息。Specifically, since the first message carries the coloring information, the second node can obtain the coloring information after receiving the first message.
可选地,第二节点可以从头端节点(第一节点)接收第一报文,也可以通过中间节点接收第一报文。Optionally, the second node may receive the first message from the head-end node (the first node), or may receive the first message through an intermediate node.
可以理解的是,在第二节点通过中间节点接收第一报文的情况下,该中间节点在转发第一报文时,可以根据确定的路由信息,对第一报文的公网IP头做适应的调整。It is understandable that, when the second node receives the first message through the intermediate node, the intermediate node can make adaptive adjustments to the public network IP header of the first message according to the determined routing information when forwarding the first message.
步骤302,基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,其中,所述第二报文中的私网IP头是基于所述第一报文中的私网IP头确定的,所述目标路径为所述私网业务数据在公网传输的端到端SR路径。Step 302: Based on the coloring information, determine the target path of the second message carrying the private network service data, wherein the private network IP header in the second message is determined based on the private network IP header in the first message, and the target path is the end-to-end SR path for transmitting the private network service data in the public network.
具体地,第二节点在获取到私网业务数据的着色信息之后,可以基于该着色信息确定传输该私网业务数据的目标路径,并可以将该着色信息携带在第二报文的私网IP头的预设扩展选项中,按照目标路径发送第二报文,可以使得转发路径中的节点识别预设扩展选项中的着色信息以及基于着色信息确定目标路径。Specifically, after obtaining the coloring information of the private network service data, the second node can determine the target path for transmitting the private network service data based on the coloring information, and can carry the coloring information in the preset extended option of the private network IP header of the second message, and send the second message according to the target path, so that the nodes in the forwarding path can recognize the coloring information in the preset extended option and determine the target path based on the coloring information.
可以理解的是,由于目标路径是基于着色信息确定的,目标路径能够满足私网业务数据所需的质量要求。It can be understood that, since the target path is determined based on the coloring information, the target path can meet the quality requirements required by the private network service data.
本发明提供的路径确定方法,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,可以使得公网中转发路径上的节点可以识别预设扩展选项中的着色信息以及基于着色信息确定满足私网业务数据的质量要求的目标路径,可以实现在不另外配置的流分类策略的情况下,完成数据的传输并满足业务数据的质量要求,避免了在VPE上配置大量的流分类策略,可以适用于大量业务扩展场景。The path determination method provided by the present invention, by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option, can enable the nodes on the forwarding path in the public network to identify the coloring information in the preset extension option and determine the target path that meets the quality requirements of the private network service data based on the coloring information. It can achieve data transmission and meet the quality requirements of the service data without configuring a separate flow classification strategy, avoids configuring a large number of flow classification strategies on the VPE, and can be applicable to a large number of service expansion scenarios.
可选地,所述预设扩展选项中包括内容自定义项,所述内容自定义项用于承载所述着色信息。Optionally, the preset extension options include content customization items, and the content customization items are used to carry the coloring information.
可选地,预设扩展选项可以包括多个比特位,内容自定义项可以对应这多个比特位中的若干比特位。Optionally, the preset extension option may include multiple bits, and the content customization item may correspond to some bits among the multiple bits.
因此,第二节点可以将着色信息存储在内容自定义项中,按照目标路径发送第二报文,可以使得转发路径中的节点识别内容自定义项中的着色信息以及基于着色信息确定目标路径。Therefore, the second node may store the coloring information in the content customization item and send the second message according to the target path, so that the nodes in the forwarding path can identify the coloring information in the content customization item and determine the target path based on the coloring information.
可选地,所述基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,包括:Optionally, the determining, based on the coloring information, a target path of the second message carrying the private network service data includes:
基于所述着色信息,在候选SR路径集合中,确定与所述着色信息相对应的所述目标路径;Based on the coloring information, determining the target path corresponding to the coloring information in a set of candidate SR paths;
其中,所述候选SR路径集合包括至少一条SR路径,其中每一条SR路径对应各自的着色信息。The candidate SR path set includes at least one SR path, wherein each SR path corresponds to respective coloring information.
具体地,第二节点可以持有候选SR路径集合,候选SR路径集合可以包括一条或多条SR路径,其中每一条SR路径对应各自的着色信息,进而第二节点可以基于着色信息在候选SR路径集合中确定目标路径。Specifically, the second node may hold a candidate SR path set, which may include one or more SR paths, each of which corresponds to respective coloring information, and the second node may determine a target path in the candidate SR path set based on the coloring information.
可选地,候选SR路径集合中的任一条SR路径可以对应一种着色信息,也可以对应多种着色信息。Optionally, any SR path in the candidate SR path set may correspond to one coloring information or may correspond to multiple coloring information.
可选地,第二节点可以从SD-WAN系统中的控制器获取候选SR路径集合。Optionally, the second node may obtain a set of candidate SR paths from a controller in the SD-WAN system.
因此,第二节点可以基于着色信息,在候选SR路径集合中确定目标路径,进而可以基于目标路径发送第二报文。Therefore, the second node can determine the target path in the candidate SR path set based on the coloring information, and then send the second message based on the target path.
可选地,在所述基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径之后,所述方法还包括:Optionally, after determining the target path of the second message carrying the private network service data based on the coloring information, the method further includes:
基于所述目标路径,发送所述第二报文。Based on the target path, the second message is sent.
具体地,第二节点在确定传输私网业务数据的目标路径之后,可以基于该目标路径,发送第二报文。Specifically, after determining the target path for transmitting the private network service data, the second node may send the second message based on the target path.
可选地,基于目标路径,第二节点可以确定发送私网业务数据的出接口,进而可以通过该出接口发送第二报文。Optionally, based on the target path, the second node may determine an outbound interface for sending the private network service data, and then may send the second message through the outbound interface.
可选地,所述预设扩展选项中包括着色信息复制项,所述着色信息复制项的取值为第一取值,所述第一取值用于指示在所述第一报文的分片的预设扩展选项中复制所述第一报文的着色信息。Optionally, the preset extended option includes a coloring information copy item, and the value of the coloring information copy item is a first value, and the first value is used to indicate that the coloring information of the first message is copied in the preset extended option of the fragment of the first message.
具体地,目标路径中的节点可以对私网业务数据进行IP分片处理,着色信息复制项的取值为第一取值,可以指示IP分片都需要复制该预设扩展选项,进而IP分片中也会携带预设扩展选项中的着色信息,进而接收到该IP分片的节点也可以基于着色信息确定目标路径。Specifically, the nodes in the target path can perform IP fragmentation on private network service data, and the value of the coloring information copy item is the first value, which can indicate that the IP fragments need to copy the preset extended option, and then the IP fragments will also carry the coloring information in the preset extended option, and then the node that receives the IP fragment can also determine the target path based on the coloring information.
可选地,私网IP头的预设扩展选项可以是在私网IP头中新增的Color Option选项,Color Option选项中可以包括着色信息复制项、类别项和内容自定义项。Optionally, the preset extended option of the private network IP header may be a Color Option option newly added in the private network IP header, and the Color Option option may include a coloring information copy item, a category item, and a content customization item.
可选地,第一取值可以为1,标志IP分片都需要复制该Color Option选项,类别项可以取值为1,标志预留段。Optionally, the first value may be 1, indicating that all IP fragments need to copy the Color Option option, and the category item may be 1, indicating a reserved segment.
可选地,Color Option选项可以包括8个比特位,着色信息复制项可以对应1个比特位,类别项可以对应2个比特位,内容自定义项可以对应5个比特位。Optionally, the Color Option option may include 8 bits, the coloring information copy item may correspond to 1 bit, the category item may correspond to 2 bits, and the content customization item may correspond to 5 bits.
因此,第二节点可以将着色信息复制项的值设置为第一取值,按照目标路径发送第二报文,可以使得转发路径中的节点识别着色信息复制项的指示信息,进而转发路径中的节点在进行IP分片时会将预设扩展选项中的着色信息携带在IP分片中,保证接收IP分片的节点也可以基于着色信息确定目标路径。Therefore, the second node can set the value of the coloring information copy item to the first value and send the second message according to the target path, so that the nodes in the forwarding path can recognize the indication information of the coloring information copy item, and then the nodes in the forwarding path will carry the coloring information in the preset extended option in the IP fragment when performing IP fragmentation, thereby ensuring that the node receiving the IP fragment can also determine the target path based on the coloring information.
下面通过一个具体示例进一步介绍本发明的技术方案。The technical solution of the present invention is further described below through a specific example.
业务数据的质量要求可以包括多种质量要求类型,例如业务数据的质量要求可以包括延时类型、带宽类型和可靠性类型,下面以业务数据的质量要求为时延最小的场景为例进行详细说明。The quality requirements of business data may include multiple quality requirement types. For example, the quality requirements of business data may include a delay type, a bandwidth type, and a reliability type. The following is a detailed description taking the scenario where the quality requirement of business data is the minimum delay as an example.
图4是本发明提供的私网业务数据在公网传输的端到端SR路径示意图,如图4所示,SD-WAN可以包括控制器、头端节点(例如图4中的CPE1节点),至少一个中间节点(例如图4中的VPE1节点、P1节点和VPE3节点)和尾端节点(例如图4中的CPE2节点),其中:FIG4 is a schematic diagram of an end-to-end SR path for private network service data transmitted in a public network provided by the present invention. As shown in FIG4 , the SD-WAN may include a controller, a headend node (e.g., a CPE1 node in FIG4 ), at least one intermediate node (e.g., a VPE1 node, a P1 node, and a VPE3 node in FIG4 ), and a tailend node (e.g., a CPE2 node in FIG4 ), wherein:
控制器,可以用于向系统中的通信目标下发候选SR路径集合,通信目标可以是头端节点、中间节点或尾端节点;The controller can be used to send a set of candidate SR paths to the communication target in the system, which can be a head-end node, an intermediate node, or a tail-end node;
头端节点,可以用于向至少一个中间节点中的任一中间节点发送私网业务数据;The head-end node may be used to send private network service data to any intermediate node of at least one intermediate node;
至少一个中间节点中的任一中间节点,可以用于从上一节点接收私网业务数据,以及向下一节点发送私网业务数据,其中上一节点为头端节点或至少一个中间节点中的其他中间节点,下一节点为尾端节点或至少一个中间节点中的中间节点;Any intermediate node of at least one intermediate node may be used to receive private network service data from a previous node and send private network service data to a next node, wherein the previous node is a head-end node or other intermediate node of at least one intermediate node, and the next node is a tail-end node or an intermediate node of at least one intermediate node;
尾端节点,用于从至少一个中间节点中的任一中间节点接收私网业务数据。The tail node is used to receive private network service data from any intermediate node of at least one intermediate node.
控制器收集整网拓扑的信息,针对CPE1到CPE2,为私网业务数据的各种不同质量要求类型,计算对应的端到端SR路径。The controller collects information about the entire network topology and calculates the corresponding end-to-end SR path from CPE1 to CPE2 for various quality requirements of private network service data.
例如,时延最小的路径对应的着色信息可以是red;又例如带宽最大的路径对应的着色信息可以是green,对此不作限定。For example, the coloring information corresponding to the path with the smallest delay may be red; for another example, the coloring information corresponding to the path with the largest bandwidth may be green, and there is no limitation on this.
在CPE1收到vpn1的私网业务数据的情况下,假设私网业务数据的质量要求类型为时延最小,则CPE1可以确定该私网业务数据的着色信息为red。When CPE1 receives the private network service data of vpn1, assuming that the quality requirement type of the private network service data is minimum delay, CPE1 can determine that the coloring information of the private network service data is red.
可选地,CPE1可以基于着色信息red,在接收到的控制器发送的候选SR路径集合中,确定与着色信息相匹配的目标路径,目标路径对应的各个设备路由转发表,如表2所示:Optionally, CPE1 may determine, based on the coloring information red, a target path matching the coloring information in the candidate SR path set received from the controller, and a routing forwarding table of each device corresponding to the target path, as shown in Table 2:
表2Table 2
可选地,CPE1可以基于该转发表确定,通过出接口GRE1发送携带有私网业务数据的报文A1,报文A1中的GRE头部字段KEY可以标识vpn1,报文A1的公网IP(内层IP)头中的源IP地址可以为1.1.1.1,目的IP地址可以为2.2.2.2。Optionally, CPE1 can determine based on the forwarding table and send message A1 carrying private network service data through the outbound interface GRE1. The GRE header field KEY in message A1 can identify vpn1. The source IP address in the public IP (inner IP) header of message A1 can be 1.1.1.1, and the destination IP address can be 2.2.2.2.
可选地,报文A1中的私网IP头的预设扩展选项(Color Option选项)中包括着色信息red。Optionally, the preset extended option (Color Option option) of the private network IP header in the message A1 includes coloring information red.
可选地,该Color Option选项可以包括数值内容自定义项,内容自定义项用于承载着色信息red,例如设置内容自定义项的值为1,表示承载着色信息red。Optionally, the Color Option option may include a numerical content customization item, and the content customization item is used to carry the coloring information red. For example, setting the value of the content customization item to 1 indicates carrying the coloring information red.
可选地,该Color Option选项可以包括着色信息复制项,第一取值可以为1,标志IP分片都需要复制该Color Option选项。Optionally, the Color Option option may include a coloring information replication item, and the first value may be 1, indicating that all IP fragments need to replicate the Color Option option.
在VPE1收到私网业务数据的情况下,可以基于接收到的携带有私网业务数据的报文A1,获取着色信息red。When VPE1 receives the private network service data, it can obtain the coloring information red based on the received message A1 carrying the private network service data.
可选地,VPE1可以基于报文A1中的私网IP头的Color Option选项获取着色信息red。Optionally, VPE1 may obtain the coloring information red based on the Color Option option of the private network IP header in the packet A1.
可选地,VPE1可以基于Color Option选项中的内容自定义项,确定着色信息red。例如内容自定义项取值为1对应着色信息red。Optionally, VPE1 may determine the coloring information red based on the content customization item in the Color Option option. For example, a value of 1 for the content customization item corresponds to the coloring information red.
可选地,VPE1可以基于着色信息red,在接收到的控制器发送的候选SR路径集合中,确定与着色信息相匹配的目标路径,目标路径对应的各个设备路由转发表,如表2所示。Optionally, VPE1 may determine, based on the coloring information red, a target path matching the coloring information in the candidate SR path set received from the controller, and each device routing forwarding table corresponding to the target path, as shown in Table 2.
可选地,VPE1可以基于该转发表确定,通过BGP隧道出口发送携带有私网业务数据的报文A2。Optionally, VPE1 may determine based on the forwarding table to send the message A2 carrying the private network service data through the BGP tunnel egress.
可选地,报文A2的私网IP头可以是基于报文A1中的私网IP头确定的,例如报文A2的私网IP头可以与报文A1中的私网IP头相同。Optionally, the private network IP header of the message A2 may be determined based on the private network IP header in the message A1. For example, the private network IP header of the message A2 may be the same as the private network IP header in the message A1.
可选地,基于传统BGP传输私网业务数据的报文中可以包括多协议标签交换(Multi-Protocol Label Switching,MPLS)报文头,MPLS报文头中的BGP标签可以标识vpn1。Optionally, a message for transmitting private network service data based on traditional BGP may include a Multi-Protocol Label Switching (MPLS) message header, and the BGP label in the MPLS message header may identify vpn1.
在VPE3收到私网业务数据的情况下,可以基于接收到的携带有私网业务数据的报文A3,获取着色信息red。When VPE3 receives the private network service data, it can obtain the coloring information red based on the received message A3 carrying the private network service data.
可以理解的是,P1节点在接收到VPE1发送的报文A2之后,可以基于BGP转发携带有私网业务数据A的报文A3,进而VPE3可以从P1节点接收到报文A3。It is understandable that after receiving the message A2 sent by VPE1, the P1 node can forward the message A3 carrying the private network service data A based on BGP, and then VPE3 can receive the message A3 from the P1 node.
可选地,VPE3可以基于报文A3中的私网IP头的Color Option选项获取着色信息red。Optionally, VPE3 may obtain the coloring information red based on the Color Option option of the private network IP header in the message A3.
可选地,VPE3可以基于Color Option选项中的内容自定义项,确定着色信息red。例如内容自定义项取值为1对应着色信息red。Optionally, VPE3 may determine the coloring information red based on the content customization item in the Color Option option. For example, a value of 1 for the content customization item corresponds to the coloring information red.
可选地,VPE3可以基于着色信息red,在接收到的控制器发送的候选SR路径集合中,确定与着色信息相匹配的目标路径,目标路径对应的各个设备路由转发表,如表2所示。Optionally, VPE3 may determine, based on the coloring information red, a target path matching the coloring information in the candidate SR path set received from the controller, and each device routing forwarding table corresponding to the target path, as shown in Table 2.
可选地,VPE3可以基于该转发表确定,通过出接口GRE1发送携带有私网业务数据的报文A4,报文A4中的GRE头部字段KEY可以标识vpn1,报文A4的公网IP(内层IP)头中的源IP地址可以为4.4.4.4,目的IP地址可以为5.5.5.5。Optionally, VPE3 can determine based on the forwarding table and send message A4 carrying private network service data through the outbound interface GRE1. The GRE header field KEY in message A4 can identify vpn1. The source IP address in the public IP (inner IP) header of message A4 can be 4.4.4.4, and the destination IP address can be 5.5.5.5.
可选地,报文A4的私网IP头可以是基于报文A3中的私网IP头确定的,例如报文A4的私网IP头可以与报文A3中的私网IP头相同。Optionally, the private network IP header of message A4 may be determined based on the private network IP header in message A3. For example, the private network IP header of message A4 may be the same as the private network IP header in message A3.
在CPE2收到私网业务数据的情况下,可以基于接收到的携带有私网业务数据的报文A4,获取着色信息red。When CPE2 receives the private network service data, it can obtain the coloring information red based on the received message A4 carrying the private network service data.
可选地,CPE2可以基于报文A4中的私网IP头的Color Option选项获取着色信息red。Optionally, CPE2 may obtain the coloring information red based on the Color Option option of the private network IP header in the message A4.
可选地,CPE2可以基于Color Option选项中的内容自定义项,确定着色信息red。例如内容自定义项取值为1对应着色信息red。Optionally, CPE2 may determine the coloring information red based on the content customization item in the Color Option option. For example, a value of 1 for the content customization item corresponds to the coloring information red.
可选地,CPE2可以基于着色信息red,在接收到的控制器发送的候选SR路径集合中,确定与着色信息相匹配的目标路径,目标路径对应的各个设备路由转发表,如表2所示。Optionally, CPE2 may determine, based on the coloring information red, a target path matching the coloring information in the candidate SR path set received from the controller, and a routing forwarding table of each device corresponding to the target path, as shown in Table 2.
可选地,CPE2可以基于该转发表确定,通过出接口GE1/1/1发送携带有私网业务数据的报文A5。Optionally, CPE2 may determine based on the forwarding table to send the message A5 carrying the private network service data through the outbound interface GE1/1/1.
可选地,报文A5的私网IP头可以是基于报文A4中的私网IP头确定的。Optionally, the private network IP header of message A5 may be determined based on the private network IP header in message A4.
本发明提供的路径确定方法,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,可以使得公网中转发路径上的节点可以识别预设扩展选项中的着色信息以及基于着色信息确定满足私网业务数据的质量要求的目标路径,可以实现在不另外配置的流分类策略的情况下,完成数据的传输并满足业务数据的质量要求,避免了在VPE上配置大量的流分类策略,可以适用于大量业务扩展场景。The path determination method provided by the present invention, by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option, can enable the nodes on the forwarding path in the public network to identify the coloring information in the preset extension option and determine the target path that meets the quality requirements of the private network service data based on the coloring information. It can achieve data transmission and meet the quality requirements of the service data without configuring a separate flow classification strategy, avoids configuring a large number of flow classification strategies on the VPE, and can be applicable to a large number of service expansion scenarios.
下面对本发明提供的路径确定装置进行描述,下文描述的路径确定装置与上文描述的路径确定方法可相互对应参照。The path determination device provided by the present invention is described below. The path determination device described below and the path determination method described above can be referred to each other.
图5是本发明提供的路径确定装置的结构示意图之一,如图5所示,所述装置包括:第一确定模块501和第二确定模块502,其中:FIG. 5 is one of the structural schematic diagrams of the path determination device provided by the present invention. As shown in FIG. 5 , the device includes: a first determination module 501 and a second determination module 502, wherein:
第一确定模块501用于确定私网业务数据的着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;The first determination module 501 is used to determine the coloring information of the private network service data, where the coloring information is used to characterize the quality requirement type of the private network service data;
第二确定模块502用于基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,其中,所述目标路径为所述私网业务数据在公网传输的端到端分段路由SR路径,所述第一报文中的私网网际互连协议IP头的预设扩展选项中包括所述着色信息。The second determination module 502 is used to determine a target path of a first message carrying the private network service data based on the coloring information, wherein the target path is an end-to-end segment routing (SR) path for transmitting the private network service data in a public network, and the preset extension option of the private network Internet Protocol (IP) header in the first message includes the coloring information.
具体地,本发明提供的装置在确定私网业务数据的着色信息之后,可以基于该着色信息确定传输该私网业务数据的目标路径,并可以将该着色信息携带在第一报文的私网IP头的预设扩展选项中,按照目标路径发送第一报文,可以使得转发路径中的节点识别预设扩展选项中的着色信息以及基于着色信息确定目标路径。Specifically, after determining the coloring information of the private network service data, the device provided by the present invention can determine the target path for transmitting the private network service data based on the coloring information, and can carry the coloring information in the preset extended option of the private network IP header of the first message, and send the first message according to the target path, so that the nodes in the forwarding path can recognize the coloring information in the preset extended option and determine the target path based on the coloring information.
本发明提供的路径确定装置,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,可以使得公网中转发路径上的节点可以识别预设扩展选项中的着色信息以及基于着色信息确定满足私网业务数据的质量要求的目标路径,可以实现在不另外配置的流分类策略的情况下,完成数据的传输并满足业务数据的质量要求,避免了在VPE上配置大量的流分类策略,可以适用于大量业务扩展场景。The path determination device provided by the present invention, by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option, can enable the nodes on the forwarding path in the public network to identify the coloring information in the preset extension option and determine the target path that meets the quality requirements of the private network service data based on the coloring information. It can achieve data transmission and meet the quality requirements of the service data without additionally configuring a flow classification strategy, avoiding the configuration of a large number of flow classification strategies on the VPE, and can be applicable to a large number of service expansion scenarios.
可选地,所述预设扩展选项中包括内容自定义项,所述内容自定义项用于承载所述着色信息。Optionally, the preset extension options include content customization items, and the content customization items are used to carry the coloring information.
可选地,所述第二确定模块还用于:Optionally, the second determining module is further used for:
基于所述着色信息,在候选SR路径集合中,确定与所述着色信息相对应的所述目标路径;Based on the coloring information, determining the target path corresponding to the coloring information in a set of candidate SR paths;
其中,所述候选SR路径集合包括至少一条SR路径,其中每一条SR路径对应各自的着色信息。The candidate SR path set includes at least one SR path, wherein each SR path corresponds to respective coloring information.
可选地,所述第一确定模块还用于:Optionally, the first determining module is further configured to:
基于所述私网业务数据的质量要求类型,确定所述着色信息。The coloring information is determined based on the quality requirement type of the private network service data.
可选地,所述装置还包括第一发送模块,所述第一发送模块用于:Optionally, the device further includes a first sending module, wherein the first sending module is configured to:
在所述基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径之后,基于所述目标路径,发送所述第一报文。After determining the target path of the first message carrying the private network service data based on the coloring information, the first message is sent based on the target path.
可选地,所述预设扩展选项中包括着色信息复制项,所述着色信息复制项的取值为第一取值,所述第一取值用于指示在所述第一报文的分片的预设扩展选项中复制所述第一报文的着色信息。Optionally, the preset extended option includes a coloring information copy item, and the value of the coloring information copy item is a first value, and the first value is used to indicate that the coloring information of the first message is copied in the preset extended option of the fragment of the first message.
本发明提供的路径确定装置,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,可以使得公网中转发路径上的节点可以识别预设扩展选项中的着色信息以及基于着色信息确定满足私网业务数据的质量要求的目标路径,可以实现在不另外配置的流分类策略的情况下,完成数据的传输并满足业务数据的质量要求,避免了在VPE上配置大量的流分类策略,可以适用于大量业务扩展场景。The path determination device provided by the present invention, by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option, can enable the nodes on the forwarding path in the public network to identify the coloring information in the preset extension option and determine the target path that meets the quality requirements of the private network service data based on the coloring information. It can achieve data transmission and meet the quality requirements of the service data without additionally configuring a flow classification strategy, avoiding the configuration of a large number of flow classification strategies on the VPE, and can be applicable to a large number of service expansion scenarios.
图6是本发明提供的路径确定装置的结构示意图之二,如图6所示,所述装置包括:获取模块601和第三确定模块602,其中:FIG. 6 is a second schematic diagram of the structure of the path determination device provided by the present invention. As shown in FIG. 6 , the device includes: an acquisition module 601 and a third determination module 602, wherein:
获取模块601,用于基于接收到的携带有私网业务数据的第一报文,获取着色信息,其中,所述第一报文中的私网IP头的预设扩展选项中包括所述着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;An acquisition module 601 is configured to acquire coloring information based on a received first message carrying private network service data, wherein a preset extension option of a private network IP header in the first message includes the coloring information, and the coloring information is used to characterize a quality requirement type of the private network service data;
第三确定模块602,用于基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,其中,所述第二报文中的私网IP头是基于所述第一报文中的私网IP头确定的,所述目标路径为所述私网业务数据在公网传输的端到端SR路径。The third determination module 602 is used to determine the target path of the second message carrying the private network service data based on the coloring information, wherein the private network IP header in the second message is determined based on the private network IP header in the first message, and the target path is the end-to-end SR path for transmitting the private network service data in the public network.
具体地,本发明提供的装置在接收到第一报文之后,可以获取到着色信息,进而可以基于该着色信息确定传输该私网业务数据的目标路径,并可以将该着色信息携带在第二报文的私网IP头的预设扩展选项中,按照目标路径发送第二报文,可以使得转发路径中的节点识别预设扩展选项中的着色信息以及基于着色信息确定目标路径。Specifically, after receiving the first message, the device provided by the present invention can obtain coloring information, and then determine the target path for transmitting the private network service data based on the coloring information, and can carry the coloring information in the preset extended option of the private network IP header of the second message, and send the second message according to the target path, so that the nodes in the forwarding path can identify the coloring information in the preset extended option and determine the target path based on the coloring information.
本发明提供的路径确定装置,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,可以使得公网中转发路径上的节点可以识别预设扩展选项中的着色信息以及基于着色信息确定满足私网业务数据的质量要求的目标路径,可以实现在不另外配置的流分类策略的情况下,完成数据的传输并满足业务数据的质量要求,避免了在VPE上配置大量的流分类策略,可以适用于大量业务扩展场景。The path determination device provided by the present invention, by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option, can enable the nodes on the forwarding path in the public network to identify the coloring information in the preset extension option and determine the target path that meets the quality requirements of the private network service data based on the coloring information. It can achieve data transmission and meet the quality requirements of the service data without additionally configuring a flow classification strategy, avoiding the configuration of a large number of flow classification strategies on the VPE, and can be applicable to a large number of service expansion scenarios.
可选地,所述预设扩展选项中包括内容自定义项,所述内容自定义项用于承载所述着色信息。Optionally, the preset extension options include content customization items, and the content customization items are used to carry the coloring information.
可选地,所述第三确定模块还用于:Optionally, the third determining module is further used to:
基于所述着色信息,在候选SR路径集合中,确定与所述着色信息相对应的所述目标路径;Based on the coloring information, determining the target path corresponding to the coloring information in a set of candidate SR paths;
其中,所述候选SR路径集合包括至少一条SR路径,其中每一条SR路径对应各自的着色信息。The candidate SR path set includes at least one SR path, wherein each SR path corresponds to respective coloring information.
可选地,所述装置还包括第二发送模块,所述第二发送模块用于:Optionally, the device further includes a second sending module, wherein the second sending module is configured to:
在所述基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径之后,基于所述目标路径,发送所述第二报文。After determining the target path of the second message carrying the private network service data based on the coloring information, the second message is sent based on the target path.
可选地,所述预设扩展选项中包括着色信息复制项,所述着色信息复制项的取值为第一取值,所述第一取值用于指示在所述第一报文的分片的预设扩展选项中复制所述第一报文的着色信息。Optionally, the preset extended option includes a coloring information copy item, and the value of the coloring information copy item is a first value, and the first value is used to indicate that the coloring information of the first message is copied in the preset extended option of the fragment of the first message.
本发明提供的路径确定装置,通过在私网IP头中新增预设扩展选项,并在预设扩展选项中携带着色信息,可以使得公网中转发路径上的节点可以识别预设扩展选项中的着色信息以及基于着色信息确定满足私网业务数据的质量要求的目标路径,可以实现在不另外配置的流分类策略的情况下,完成数据的传输并满足业务数据的质量要求,避免了在VPE上配置大量的流分类策略,可以适用于大量业务扩展场景。The path determination device provided by the present invention, by adding a preset extension option in the private network IP header and carrying coloring information in the preset extension option, can enable the nodes on the forwarding path in the public network to identify the coloring information in the preset extension option and determine the target path that meets the quality requirements of the private network service data based on the coloring information. It can achieve data transmission and meet the quality requirements of the service data without additionally configuring a flow classification strategy, avoiding the configuration of a large number of flow classification strategies on the VPE, and can be applicable to a large number of service expansion scenarios.
图7是本发明提供的电子设备的结构示意图,如图7所示,该电子设备可以包括:处理器(processor)710、通信接口(Communications Interface)720、存储器(memory)730和通信总线740,其中,处理器710,通信接口720,存储器730通过通信总线740完成相互间的通信。处理器710可以调用存储器730中的逻辑指令,以执行路径确定方法,该方法包括:第一节点确定私网业务数据的着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;FIG7 is a schematic diagram of the structure of an electronic device provided by the present invention. As shown in FIG7 , the electronic device may include: a processor 710, a communications interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communications interface 720 and the memory 730 communicate with each other via the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the path determination method, which includes: a first node determines coloring information of private network service data, wherein the coloring information is used to characterize the quality requirement type of the private network service data;
基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,其中,所述目标路径为所述私网业务数据在公网传输的端到端分段路由SR路径,所述第一报文中的私网网际互连协议IP头的预设扩展选项中包括所述着色信息。Based on the coloring information, a target path of a first message carrying the private network service data is determined, wherein the target path is an end-to-end segment routing (SR) path for transmitting the private network service data in a public network, and a preset extension option of a private network Internet Protocol (IP) header in the first message includes the coloring information.
或执行路径确定方法,该方法包括:Or executing a path determination method, the method comprising:
第二节点基于接收到的携带有私网业务数据的第一报文,获取着色信息,其中,所述第一报文中的私网IP头的预设扩展选项中包括所述着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;The second node obtains coloring information based on the received first message carrying the private network service data, wherein the preset extension option of the private network IP header in the first message includes the coloring information, and the coloring information is used to characterize the quality requirement type of the private network service data;
基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,其中,所述第二报文中的私网IP头是基于所述第一报文中的私网IP头确定的,所述目标路径为所述私网业务数据在公网传输的端到端SR路径。Based on the coloring information, determine the target path of the second message carrying the private network service data, wherein the private network IP header in the second message is determined based on the private network IP header in the first message, and the target path is the end-to-end SR path for transmitting the private network service data in the public network.
此外,上述的存储器730中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的路径确定方法,该方法包括:第一节点确定私网业务数据的着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the path determination method provided by the above methods, the method includes: a first node determines coloring information of private network service data, the coloring information is used to characterize the quality requirement type of the private network service data;
基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,其中,所述目标路径为所述私网业务数据在公网传输的端到端分段路由SR路径,所述第一报文中的私网网际互连协议IP头的预设扩展选项中包括所述着色信息。Based on the coloring information, a target path of a first message carrying the private network service data is determined, wherein the target path is an end-to-end segment routing (SR) path for transmitting the private network service data in a public network, and a preset extension option of a private network Internet Protocol (IP) header in the first message includes the coloring information.
或执行上述各方法所提供的路径确定方法,该方法包括:Or execute the path determination method provided by the above methods, the method comprising:
第二节点基于接收到的携带有私网业务数据的第一报文,获取着色信息,其中,所述第一报文中的私网IP头的预设扩展选项中包括所述着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;The second node obtains coloring information based on the received first message carrying the private network service data, wherein the preset extension option of the private network IP header in the first message includes the coloring information, and the coloring information is used to characterize the quality requirement type of the private network service data;
基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,其中,所述第二报文中的私网IP头是基于所述第一报文中的私网IP头确定的,所述目标路径为所述私网业务数据在公网传输的端到端SR路径。Based on the coloring information, determine the target path of the second message carrying the private network service data, wherein the private network IP header in the second message is determined based on the private network IP header in the first message, and the target path is the end-to-end SR path for transmitting the private network service data in the public network.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的路径确定方法,该方法包括:第一节点确定私网业务数据的着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, the computer program being implemented when executed by a processor to execute the path determination method provided by the above methods, the method comprising: a first node determining coloring information of private network service data, the coloring information being used to characterize a quality requirement type of the private network service data;
基于所述着色信息,确定携带有所述私网业务数据的第一报文的目标路径,其中,所述目标路径为所述私网业务数据在公网传输的端到端分段路由SR路径,所述第一报文中的私网网际互连协议IP头的预设扩展选项中包括所述着色信息。Based on the coloring information, a target path of a first message carrying the private network service data is determined, wherein the target path is an end-to-end segment routing (SR) path for transmitting the private network service data in a public network, and a preset extension option of a private network Internet Protocol (IP) header in the first message includes the coloring information.
或执行上述各方法提供的路径确定方法,该方法包括:Or execute the path determination method provided by the above methods, the method comprising:
第二节点基于接收到的携带有私网业务数据的第一报文,获取着色信息,其中,所述第一报文中的私网IP头的预设扩展选项中包括所述着色信息,所述着色信息用于表征所述私网业务数据的质量要求类型;The second node obtains coloring information based on the received first message carrying the private network service data, wherein the preset extension option of the private network IP header in the first message includes the coloring information, and the coloring information is used to characterize the quality requirement type of the private network service data;
基于所述着色信息,确定携带有所述私网业务数据的第二报文的目标路径,其中,所述第二报文中的私网IP头是基于所述第一报文中的私网IP头确定的,所述目标路径为所述私网业务数据在公网传输的端到端SR路径。Based on the coloring information, determine the target path of the second message carrying the private network service data, wherein the private network IP header in the second message is determined based on the private network IP header in the first message, and the target path is the end-to-end SR path for transmitting the private network service data in the public network.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111564597.9A CN114205293B (en) | 2021-12-20 | 2021-12-20 | Path determination method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111564597.9A CN114205293B (en) | 2021-12-20 | 2021-12-20 | Path determination method, device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114205293A CN114205293A (en) | 2022-03-18 |
CN114205293B true CN114205293B (en) | 2024-04-09 |
Family
ID=80655436
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111564597.9A Active CN114205293B (en) | 2021-12-20 | 2021-12-20 | Path determination method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114205293B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110912795A (en) * | 2018-09-14 | 2020-03-24 | 中兴通讯股份有限公司 | A transmission control method, node, network system and storage medium |
CN111245644A (en) * | 2019-12-31 | 2020-06-05 | 网络通信与安全紫金山实验室 | A method and system for automatically creating a tunnel by extending the PCEP protocol in an SDN scenario |
CN111935014A (en) * | 2020-10-19 | 2020-11-13 | 网络通信与安全紫金山实验室 | Message forwarding method and device based on SRv6 network, storage medium and electronic equipment |
CN112448885A (en) * | 2019-08-27 | 2021-03-05 | 华为技术有限公司 | Method and device for transmitting service message |
CN112636935A (en) * | 2019-10-08 | 2021-04-09 | 中兴通讯股份有限公司 | Virtual private network multicast method based on IPv6 network and electronic equipment |
CN112887205A (en) * | 2019-11-29 | 2021-06-01 | 中国电信股份有限公司 | Message transmission method and device and computer readable storage medium |
CN112995030A (en) * | 2021-02-07 | 2021-06-18 | 中兴通讯股份有限公司 | Business processing method and device, storage medium and electronic device |
CN113472658A (en) * | 2021-06-29 | 2021-10-01 | 新华三信息安全技术有限公司 | Message packaging method, message forwarding method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11743166B2 (en) * | 2020-06-03 | 2023-08-29 | Juniper Networks, Inc. | Provisioning non-colored segment routing label switched paths via segment routing policies in border gateway protocol |
-
2021
- 2021-12-20 CN CN202111564597.9A patent/CN114205293B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110912795A (en) * | 2018-09-14 | 2020-03-24 | 中兴通讯股份有限公司 | A transmission control method, node, network system and storage medium |
CN112448885A (en) * | 2019-08-27 | 2021-03-05 | 华为技术有限公司 | Method and device for transmitting service message |
CN112636935A (en) * | 2019-10-08 | 2021-04-09 | 中兴通讯股份有限公司 | Virtual private network multicast method based on IPv6 network and electronic equipment |
CN112887205A (en) * | 2019-11-29 | 2021-06-01 | 中国电信股份有限公司 | Message transmission method and device and computer readable storage medium |
CN111245644A (en) * | 2019-12-31 | 2020-06-05 | 网络通信与安全紫金山实验室 | A method and system for automatically creating a tunnel by extending the PCEP protocol in an SDN scenario |
CN111935014A (en) * | 2020-10-19 | 2020-11-13 | 网络通信与安全紫金山实验室 | Message forwarding method and device based on SRv6 network, storage medium and electronic equipment |
CN112995030A (en) * | 2021-02-07 | 2021-06-18 | 中兴通讯股份有限公司 | Business processing method and device, storage medium and electronic device |
CN113472658A (en) * | 2021-06-29 | 2021-10-01 | 新华三信息安全技术有限公司 | Message packaging method, message forwarding method and device |
Non-Patent Citations (2)
Title |
---|
Multi-path Transmission Scheme Based on Segment Control in Low-Earth-Orbit Satellite Network;Man Ouyang等;《 2021 IEEE 22nd International Conference on High Performance Switching and Routing (HPSR)》;20210715;全文 * |
移动边缘计算卸载技术综述;谢人超等;《通信学报》;20181130;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114205293A (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11991012B2 (en) | Packet forwarding method, packet sending apparatus, and packet receiving apparatus | |
CN109756425B (en) | Multicast forwarding method, device and BFR | |
CN105052090B (en) | The method and device of seamless Segment routing | |
US8121126B1 (en) | Layer two (L2) network access node having data plane MPLS | |
EP3062469A1 (en) | Traffic engineering for bit indexed explicit replication | |
CN114285794B (en) | Message forwarding control method, message transmission network, electronic equipment and storage medium | |
US20200396162A1 (en) | Service function chain sfc-based communication method, and apparatus | |
CN106656801A (en) | Method and device for redirection of forwarding path of business flow and business flow forwarding system | |
CN111935004B (en) | Automatic traffic diversion extension method, router and system based on SR Policy | |
CN103259717B (en) | Routing method and routing device based on strategy customization | |
WO2021077971A1 (en) | Communication method and device | |
WO2021000848A1 (en) | Packet forwarding method and packet processing method and apparatus | |
US7742477B1 (en) | Interconnectivity between autonomous systems | |
CN105553810A (en) | Method and device for forwarding special line service packet | |
EP3420687A1 (en) | Addressing for customer premises lan expansion | |
US8559431B2 (en) | Multiple label based processing of frames | |
CN114338495A (en) | Service processing method and related equipment | |
WO2020238564A1 (en) | Traffic processing method and related device, method and apparatus for establishing forwarding table, and storage medium | |
CN101184039B (en) | A Method of Ethernet Load Balancing | |
US11784919B2 (en) | Method for sending BIERv6 packet and first network device | |
WO2022053007A1 (en) | Network reachability verification method and apparatus, and computer storage medium | |
US20240297844A1 (en) | Packet Processing Method and Apparatus, and Device | |
WO2021042674A1 (en) | Method for configuring port state and network device | |
CN114205293B (en) | Path determination method, device, electronic device and storage medium | |
WO2024093306A1 (en) | Communication method and apparatus |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: No. 9 Mozhou East Road, Nanjing City, Jiangsu Province, 211111 Patentee after: Zijinshan Laboratory Country or region after: China Address before: No. 9 Mozhou East Road, Jiangning Economic Development Zone, Jiangning District, Nanjing City, Jiangsu Province Patentee before: Purple Mountain Laboratories Country or region before: China |