[go: up one dir, main page]

CN111327525A - Network routing method and device based on segmented routing - Google Patents

Network routing method and device based on segmented routing Download PDF

Info

Publication number
CN111327525A
CN111327525A CN201811533483.6A CN201811533483A CN111327525A CN 111327525 A CN111327525 A CN 111327525A CN 201811533483 A CN201811533483 A CN 201811533483A CN 111327525 A CN111327525 A CN 111327525A
Authority
CN
China
Prior art keywords
port
mesh
pcc
router
weight calculation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811533483.6A
Other languages
Chinese (zh)
Other versions
CN111327525B (en
Inventor
葛川
郝文胜
赵东升
彭伟
林琳
袁惺
杨大鹏
常诚
李合顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Shandong Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Shandong Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Shandong Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811533483.6A priority Critical patent/CN111327525B/en
Publication of CN111327525A publication Critical patent/CN111327525A/en
Application granted granted Critical
Publication of CN111327525B publication Critical patent/CN111327525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/124Shortest path evaluation using a combination of metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results

Landscapes

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

Abstract

本发明实施例提供一种基于分段路由的网络选路方法和装置,基于不同大流量业务场景数据流构建的SDN部署架构,综合考虑基于接入路由器之间测试数据构造的网格信息以及从路由器采集的端口状态信息作为度量值计算最优路径方法,针对SDN部署架构,本发明通过如何尽可能利用现网设备进行适应不同大流量业务路由调整;基于接入路由器之间测试数据构造的网格信息以及从路由器采集的端口状态信息,根据业务流量的需求进行差异化调整的度量值,基于此度量值PCE进行最优路径计算。

Figure 201811533483

Embodiments of the present invention provide a method and device for network routing based on segment routing, an SDN deployment architecture constructed based on data streams in different high-traffic service scenarios, comprehensively considering grid information constructed based on test data between access routers and from The port state information collected by the router is used as the metric value to calculate the optimal path method. For the SDN deployment architecture, the present invention uses the existing network equipment as much as possible to adapt to different high-traffic services routing adjustment; Based on the grid information and the port status information collected from the router, the metric value is differentiated and adjusted according to the needs of the service traffic, and the PCE calculates the optimal path based on this metric value.

Figure 201811533483

Description

一种基于分段路由的网络选路方法和装置A method and device for network routing based on segment routing

技术领域technical field

本发明实施例涉及通信技术领域,更具体地,涉及一种基于分段路由的网络选路方法和装置。Embodiments of the present invention relate to the field of communications technologies, and more particularly, to a method and apparatus for network routing based on segment routing.

背景技术Background technique

互联网在经历了四十多年的高速发展后,从最初的专用学术网发展成为现在更广泛的商业平台,己逐渐渗入到了人们生活的方方面面。但随着全球用户规模和网络应用爆发式的增长,现有的互联网暴露出各种各样原始设计的不足与缺陷。例如,现网的原始设计思想主要是一种网络主要面向某一种特定的服务,如电信网主要面向语音业务、电视网主要面向视频业务、互联网主要面向数据传输业务,而对其他业务的支持性较差。为此,迫切需要创建全新的互联网体系结构,来满足经济与社会发展对未来互联网的需求。After more than 40 years of rapid development, the Internet has developed from a dedicated academic network to a wider commercial platform, and has gradually penetrated into every aspect of people's lives. However, with the explosive growth of global user scale and network applications, the existing Internet has exposed various shortcomings and defects of the original design. For example, the original design idea of the existing network is mainly that a network is mainly oriented to a specific service, such as a telecommunication network mainly oriented to voice services, a TV network mainly oriented to video services, the Internet mainly oriented to data transmission services, and support for other services. Poor sex. To this end, it is urgent to create a brand-new Internet architecture to meet the needs of economic and social development for the future Internet.

传统网络不断被动的调整网络架构和配置,无法匹配业务的快速发展,而且会使网络部署越来越复杂,变得难以维护;我们更希望由应用提出需求,根据业务需求计算显示路径,网络实时动态调整,快速满足业务变化需求。网络架构需要由“网络适配业务”向“业务驱动网络”演进。The traditional network constantly adjusts the network architecture and configuration passively, which cannot match the rapid development of services, and makes the network deployment more complex and difficult to maintain. Dynamic adjustment to quickly meet business changing needs. The network architecture needs to evolve from "network adaptation services" to "service-driven networks".

软件定义网络(Software-Defined Networking,SDN)是一种新兴的网络体系架构,它将现有的高度集成的网络设备的控制平面从复杂的底层设备中分离出来,使得网络管理者对全网的配置、管理和控制变得巧高效,通过编程的方式对网络进行修改,以应对不断扩大的网络规模及快速增长的流量需求。Software-Defined Networking (SDN) is an emerging network architecture that separates the control plane of the existing highly integrated network equipment from the complex underlying equipment, allowing network managers to Configuration, management and control become smart and efficient, and the network can be modified programmatically to cope with the ever-expanding network size and rapidly increasing traffic demands.

目前现有的基于SDN路由选的研究方案主要有:(1)使用SDN控制器收集组网连接的信息数据文件,根据从信息数据文件中读取的信息数据更新网络节点和网络邻接表;根据得到的网络节点和邻接表采用平衡全局负载均衡算法进行路由计算及路由选择;将得到的最优路径进行保存并写入文件。它能够提高整个系统的稳定性和路径选择的最优化,提高整体链路的利用率;(2)将网络分割为多个规模较小的子网,在子网内部选举一个流量汇聚节点,子网内普通节点之间的通信通过流量汇聚节点转发,跨子网普通节点之间的通信由本子网的流量汇聚节点转发。与现有技术相比,积极效果是:通过将一个大网络拆分成多个子网,并且在子网内和子网间应用不同的路由计算与控制方法,同时提出一种基于OpenFlow协议的路由条目聚合手段,有效地降低了计算大规模网络路由时的计算复杂度,提高了网络对高带宽、低时延、低抖动链路的利用率,降低了系统的流表项资源需求,增强了SDN技术在大规模组网环境中的性能和适应性;(3)入口提供商边缘设备(ProviderEdge,PE)根据第二用户边缘设备(Customer Edge,CE)的标签和目标PE的标签将第一CE发送的信息封装成含有标签信息的数据包;入口PE将所述封装后的数据包发送给核心层设备P,所述核心层设备根据所述数据包中的目标PE的标签建立转发路径,将所述数据包路由给目标PE,所述目标PE根据第二CE的标签将所述数据包中第一CE发送的信息路由给第二CE。本发明提供的方法、装置以及系统,使用集中部署方式的SDN控制器发布VPN(VirtualPrivate Network,虚拟专用网络)路由信息进行转发,降低运维工作量,提升运营商业务运营效率。At present, the existing research schemes based on SDN routing mainly include: (1) Use the SDN controller to collect the information data files of the networking connection, and update the network nodes and network adjacency table according to the information data read from the information data files; The obtained network nodes and adjacency lists use the balanced global load balancing algorithm to perform route calculation and route selection; the obtained optimal path is saved and written to a file. It can improve the stability of the entire system and the optimization of path selection, and improve the utilization rate of the overall link; (2) divide the network into multiple smaller subnets, elect a traffic aggregation node within the subnet, and The communication between common nodes in the network is forwarded by the traffic convergence node, and the communication between common nodes across subnets is forwarded by the traffic convergence node of this subnet. Compared with the prior art, the positive effect is: by splitting a large network into multiple subnets, and applying different routing calculation and control methods within and between subnets, a routing entry based on the OpenFlow protocol is proposed at the same time. The aggregation method effectively reduces the computational complexity when calculating large-scale network routes, improves the network utilization of high-bandwidth, low-latency, and low-jitter links, reduces the system's flow table entry resource requirements, and enhances SDN. The performance and adaptability of the technology in a large-scale networking environment; (3) The ingress provider edge device (ProviderEdge, PE) converts the first CE according to the label of the second customer edge device (Customer Edge, CE) and the label of the target PE The sent information is encapsulated into a data packet containing label information; the ingress PE sends the encapsulated data packet to the core layer device P, and the core layer device establishes a forwarding path according to the label of the target PE in the data packet, and sends the encapsulated data packet to the core layer device P. The data packet is routed to the target PE, and the target PE routes the information sent by the first CE in the data packet to the second CE according to the label of the second CE. The method, device and system provided by the present invention use a centralized deployment SDN controller to publish VPN (Virtual Private Network, virtual private network) routing information for forwarding, reduce operation and maintenance workload, and improve operator business operation efficiency.

上述方法(1)中,采用网络节点和邻接表采用平衡全局负载均衡的SDN网络路由计算方法,并未考虑端口状态以及链路质量信息,同时也无法针对特定业务进行路径的选择,达不到业务驱动网络的架构演进要求。上述方法(2)中,基于OpenFlow的SDN技术是最广为人们所知的,也是现在SDN框架内最具影响力的一个协议。然而OpenFlowv1.1中提出了多级流表的概念,而且没有限制多少级,这使控制平面的流表项会非常庞大,对硬件性能的要求也越来越高,同时匹配查表的速度也受到了一定的影响,适用于小范围内部署,难适应大网。OpenFlow控制器需要对数据平面所有的交换机进行配置,包括流表下发及相关匹配规则的下发,大大增加了控制器的负载。上述方法(3)中,为解决OpenFlow大规模网络应用流表过大的缺点,将大规模网络分割为多个规模较小的子网,在子网内部选举一个流量汇聚节点,子网内普通节点之间的通信通过流量汇聚节点转发,跨子网普通节点之间的通信由本子网的流量汇聚节点转发,但需要在网内和子网间应用不同的路由计算和控制方法,且需要对数据平面所有的交换机进行配置,包括流表下发及相关匹配规则的下发,大大增加了控制器的负载。In the above method (1), the network node and adjacency table adopts the SDN network routing calculation method of balanced global load balancing, which does not consider the port status and link quality information, and also cannot select paths for specific services. Architecture evolution requirements of service-driven networks. In the above method (2), the SDN technology based on OpenFlow is the most widely known, and it is also the most influential protocol in the current SDN framework. However, the concept of multi-level flow table is proposed in OpenFlowv1.1, and there is no limit to the number of levels, which makes the flow table entries of the control plane very large, and the requirements for hardware performance are getting higher and higher. At the same time, the speed of matching the table lookup is also Affected to a certain extent, it is suitable for small-scale deployment, but difficult to adapt to large networks. The OpenFlow controller needs to configure all switches on the data plane, including the distribution of flow tables and the distribution of related matching rules, which greatly increases the load on the controller. In the above method (3), in order to solve the shortcoming of the large flow table of OpenFlow large-scale network application, the large-scale network is divided into multiple smaller subnets, and a traffic convergence node is elected in the subnet, and the common network in the subnet is selected. The communication between nodes is forwarded by the traffic aggregation node, and the communication between common nodes across subnets is forwarded by the traffic aggregation node of this subnet, but different routing calculation and control methods need to be applied within the network and between subnets, and the data needs to be All switches on the plane are configured, including the distribution of flow tables and related matching rules, which greatly increases the load on the controller.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种克服上述问题或者至少部分地解决上述问题的一种基于分段路由的网络选路方法和装置。Embodiments of the present invention provide a method and apparatus for network routing based on segment routing that overcomes the above problem or at least partially solves the above problem.

第一方面,本发明实施例提供一种基于分段路由的网络选路方法,包括:In a first aspect, an embodiment of the present invention provides a network routing method based on segment routing, including:

基于分段路由中路由器的各端口分别到相邻路由器的丢包率、往返时延和抖动,获取表征网格状态信息的Mesh权重计算参数;基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数;Based on the packet loss rate, round-trip delay and jitter of each port of the router in segment routing to adjacent routers, the mesh weight calculation parameters representing mesh state information are obtained; based on the remaining bandwidth of the link and the CRC error of the cyclic redundancy check The number of packets obtains the port weight calculation parameter representing the port state information;

基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,并基于PCE路径计算度量值获得源点到目的节点的最短路径。The PCE path calculation metric value of the path calculation unit is obtained based on the Mesh weight calculation parameter and the port weight calculation parameter, and the shortest path from the source point to the destination node is obtained based on the PCE path calculation metric value.

作为优选的,获取表征网格状态信息的Mesh权重计算参数前,还包括:Preferably, before acquiring the Mesh weight calculation parameters representing the mesh state information, the method further includes:

基于不同的地市边缘路由器节点探针进行TraceRoute测试和ping测试,获取直接链路端口之间的丢包率、往返时延和抖动。Perform TraceRoute test and ping test based on different city edge router node probes to obtain the packet loss rate, round-trip delay and jitter between direct link ports.

作为优选的,获取表征网格状态信息的Mesh权重计算参数,具体包括:Preferably, the calculation parameters of mesh weights representing mesh state information are obtained, specifically including:

基于路由器x的M个端口分别到相邻路由器的丢包率、往返时延、抖动获取表征网格状态信息的Mesh权重计算参数θMesh(pcc(m)x)为:Based on the packet loss rate, round-trip delay, and jitter from the M ports of router x to neighboring routers, respectively, the mesh weight calculation parameter θ Mesh (pcc(m) x ) representing mesh state information is obtained as:

Figure BDA0001906291010000041
Figure BDA0001906291010000041

上式中,Ld(pcc(m)x)、Dd(pcc(m)x)以及Jd(pcc(m)x)分别表示路由器x的端口m的丢包率、往返时延和抖动对M个端口平均值的欧式距离;σL、σD以及σJ分别为端口m在丢包率、往返时延以及抖动对M个端口平均值的标准差。In the above formula, L d (pcc(m) x ), D d (pcc(m) x ) and J d (pcc(m) x ) represent the packet loss rate, round-trip delay and jitter of port m of router x, respectively Euclidean distance to the average value of M ports; σ L , σ D and σ J are the standard deviation of port m in packet loss rate, round-trip delay and jitter to the average value of M ports.

作为优选的,基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数前,还包括:Preferably, before obtaining the port weight calculation parameter representing the port state information based on the remaining bandwidth of the link and the number of CRC error packets, the method further includes:

基于现网设备上部署简单网络管理协议SNMP和NetStream采集链路剩余带宽和设定时间端口收到的CRC错包数目。Based on the deployment of Simple Network Management Protocol SNMP and NetStream on existing network devices, collect the remaining bandwidth of the link and the number of CRC error packets received by the port within the set time.

作为优选的,所述端口权重计算参数θPort(pcc(m)x)为:Preferably, the port weight calculation parameter θ Port (pcc(m) x ) is:

Figure BDA0001906291010000042
Figure BDA0001906291010000042

上式中,RBWd(pcc(m)x)、CRCd(pcc(m)x)分别表示路由器x的端口m在剩余带宽以和CRC错包数目针对M个端口平均值的欧式距离,σRBW、σCRC分别为端口m在剩余带宽以及CRC错包数目对M个端口平均值的标准差。In the above formula, RBW d (pcc(m) x ) and CRC d (pcc(m) x ) respectively represent the Euclidean distance between the remaining bandwidth and the number of CRC error packets of port m of router x to the average value of M ports, σ RBW and σ CRC are the standard deviation of the residual bandwidth of port m and the number of CRC error packets to the average value of M ports, respectively.

作为优选的,基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,具体包括:Preferably, the path calculation unit PCE path calculation metric value is obtained based on the Mesh weight calculation parameter and the port weight calculation parameter, specifically including:

路由器x端口m的Mesh权重计算参数θMesh(pcc(m)x)和端口权重计算参数θPort(pcc(m)x),以及θMesh(pcc(m)x)的权值α和θPort(pcc(m)x)的权值β,构建路由器x的第m个端口的PCE路径计算度量值的加权函数;Mesh weight calculation parameter θ Mesh (pcc(m) x ) and port weight calculation parameter θ Port (pcc(m) x ) of router x port m, and weights α and θ Port of θ Mesh (pcc(m) x ) The weight β of (pcc(m) x ) is used to construct a weighting function for calculating the metric value of the PCE path of the mth port of router x;

基于业务流量类型获取权值α和权值β的取值,以得到PCE路径计算度量值的加权系数,并基于所述加权系数得到PCE路径计算度量值。The values of the weight α and the weight β are obtained based on the service traffic type to obtain the weighting coefficient of the PCE path calculation metric value, and the PCE path calculation metric value is obtained based on the weighting coefficient.

作为优选的,并基于PCE路径计算度量值获得源点到目的节点的最短路径,具体包括:Preferably, the shortest path from the source point to the destination node is obtained by calculating the metric value based on the PCE path, specifically including:

基于获得的PCE路径计算度量值,PCE根据Dijkstra算法计算源点到目的节点最短路径。The metric value is calculated based on the obtained PCE path, and the PCE calculates the shortest path from the source point to the destination node according to the Dijkstra algorithm.

第二方面,本发明实施例提供一种基于分段路由的网络选路装置,包括:In a second aspect, an embodiment of the present invention provides a network routing device based on segment routing, including:

第一模块,用于基于分段路由中路由器的各端口分别到相邻路由器的丢包率、往返时延和抖动,获取表征网格状态信息的Mesh权重计算参数;基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数;The first module is used to obtain the mesh weight calculation parameters representing mesh state information based on the packet loss rate, round-trip delay and jitter of each port of the router in segment routing to adjacent routers; The number of error packets in the redundancy check CRC obtains the port weight calculation parameter representing the port status information;

第二模块,用于基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,并基于PCE路径计算度量值获得源点到目的节点的最短路径。The second module is configured to obtain the PCE path calculation metric value of the path calculation unit based on the Mesh weight calculation parameter and the port weight calculation parameter, and obtain the shortest path from the source point to the destination node based on the PCE path calculation metric value.

第三方面,本发明实施例提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如第一方面所提供的方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implementing the program as described in the first aspect when the processor executes the program Steps of the provided method.

第四方面,本发明实施例提供一种非暂态计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所提供的方法的步骤。In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method provided in the first aspect.

本发明实施例提出了一种基于分段路由的网络选路方法和装置,基于不同大流量业务场景数据流构建的SDN部署架构,综合考虑基于接入路由器之间测试数据构造的网格信息以及从路由器采集的端口状态信息作为度量值计算最优路径方法,针对SDN部署架构,本发明通过如何尽可能利用现网设备进行适应不同大流量业务路由调整;基于接入路由器之间测试数据构造的网格信息以及从路由器采集的端口状态信息,根据业务流量的需求进行差异化调整的度量值,基于此度量值PCE进行最优路径计算。The embodiment of the present invention proposes a network routing method and device based on segment routing, an SDN deployment architecture constructed based on data streams in different large-traffic service scenarios, comprehensively considering grid information constructed based on test data between access routers, and The port state information collected from the router is used as the metric value to calculate the optimal path method. For the SDN deployment architecture, the present invention uses the existing network equipment as much as possible to adapt to different high-traffic services routing adjustment; based on the test data between the access routers. Grid information and port status information collected from routers, metric values that are differentiated and adjusted according to service traffic requirements, and PCE calculates the optimal path based on this metric value.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为根据本发明实施例的基于分段路由的网络选路方法示意图;1 is a schematic diagram of a network routing method based on segment routing according to an embodiment of the present invention;

图2为根据本发明实施例的应用PCE架构的Segment Routing示意图;2 is a schematic diagram of Segment Routing applying a PCE architecture according to an embodiment of the present invention;

图3为根据本发明实施例的MeshICMPing测试架构示意图;3 is a schematic diagram of a MeshICMPing test architecture according to an embodiment of the present invention;

图4为根据本发明实施例的基于分段路由的网络选路装置示意图;4 is a schematic diagram of a network routing device based on segment routing according to an embodiment of the present invention;

图5为根据本发明实施例的电子设备的实体结构示意图。FIG. 5 is a schematic diagram of a physical structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

由于现有技术中采用网络节点和邻接表采用平衡全局负载均衡的SDN网络路由计算方法,并未考虑端口状态以及链路质量信息,同时也无法针对特定业务进行路径的选择,达不到业务驱动网络的架构演进要求;为解决OpenFlow大规模网络应用流表过大的缺点,将大规模网络分割为多个规模较小的子网,在子网内部选举一个流量汇聚节点,子网内普通节点之间的通信通过流量汇聚节点转发,跨子网普通节点之间的通信由本子网的流量汇聚节点转发,但需要在网内和子网间应用不同的路由计算和控制方法,且需要对数据平面所有的交换机进行配置,包括流表下发及相关匹配规则的下发,大大增加了控制器的负载;针对不同业务进行选路,降低运维工作量,提升运营商不用业务运营效率,但方案在建立Segment Routing和MPLS隧道过程中并未考虑链路质量及端口信息。Because the network node and the adjacency table in the prior art adopt the SDN network routing calculation method of balanced global load balancing, the port status and link quality information are not considered, and the path selection cannot be performed for a specific service, and the service-driven approach cannot be achieved. The architecture evolution requirements of the network; in order to solve the shortcomings of the large-scale network application flow table of OpenFlow, the large-scale network is divided into multiple smaller subnets, and a traffic aggregation node is elected in the subnet, and the common node in the subnet is selected. The communication between them is forwarded by the traffic aggregation node, and the communication between common nodes across subnets is forwarded by the traffic aggregation node of this subnet, but different routing calculation and control methods need to be applied within the network and between subnets, and the data plane needs to be All switches are configured, including the distribution of flow tables and related matching rules, which greatly increases the load of the controller; routing selection for different services reduces the workload of operation and maintenance, and improves the operation efficiency of operators without services. Link quality and port information are not considered during the establishment of Segment Routing and MPLS tunnels.

因此本发明各实施例通过如何尽可能利用现网设备进行适应不同大流量业务路由调整,综合考虑一种基于接入路由器之间测试数据构造的网格信息以及从路由器采集的端口状态信息,根据业务流量的需求进行差异化调整的度量值,基于此度量值PCE进行最优路径计算。以下将通过多个实施例进行展开说明和介绍。Therefore, each embodiment of the present invention comprehensively considers a grid information constructed based on test data between access routers and port status information collected from routers by using existing network equipment as much as possible to adapt to different high-traffic service routing adjustments. The metric value for differential adjustment of service traffic requirements, and based on this metric value PCE performs optimal path calculation. The following will expand the description and introduction through multiple embodiments.

图1为本发明实施例提供的一种基于分段路由的网络选路方法,包括:1 is a network routing method based on segment routing provided by an embodiment of the present invention, including:

S1、基于分段路由中路由器的各端口分别到相邻路由器的丢包率、往返时延和抖动,获取表征网格状态信息的Mesh权重计算参数;基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数;S1. Based on the packet loss rate, round-trip delay and jitter from each port of the router in the segment routing to the adjacent router, obtain the mesh weight calculation parameter representing the mesh state information; based on the remaining bandwidth of the link and the cyclic redundancy check The number of CRC error packets obtains the port weight calculation parameter representing the port status information;

S2、基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,并基于PCE路径计算度量值获得源点到目的节点的最短路径。S2. Obtain the PCE path calculation metric value of the path calculation unit based on the Mesh weight calculation parameter and the port weight calculation parameter, and obtain the shortest path from the source node to the destination node based on the PCE path calculation metric value.

在本实施例中,OpenFlow控制器需要对数据平面所有的交换机进行配置,包括流表下发及相关匹配规则的下发,大大增加了控制器的负载。SR(Segment Routing,分段路由)中的控制器只需要对入口边界路由器下发转发标签堆找即可,不需要对每个节点进行配置,且数据流的状态只在入口边界路由器保存,中间节点只需要根据封装在包头的标签堆找进行转发即可,大大降低了网络的部署难度。因此SR在网络转发延迟方面相比于OpenFlow会大大减小,同时也大大提高了可扩展性,更便于在运营商类大网中部署。In this embodiment, the OpenFlow controller needs to configure all switches in the data plane, including the distribution of flow tables and the distribution of related matching rules, which greatly increases the load of the controller. The controller in SR (Segment Routing, segment routing) only needs to find the forwarding label stack to the ingress border router, and does not need to configure each node, and the state of the data flow is only saved in the ingress border router, and the middle Nodes only need to forward according to the label stack encapsulated in the packet header, which greatly reduces the difficulty of network deployment. Therefore, SR will greatly reduce the network forwarding delay compared with OpenFlow, and also greatly improve the scalability, making it easier to deploy in operator-type large networks.

在本实施例中,因考虑部署在实际运营商的大规模网络当中,尽可能利用现有的网络设备,因此采用通过SR利用源路由的模型将控制平面和数据平面相分离的方案,由控制平面站在网络全局的角度,针对不同的大流量业务场景(下载类、视频类业务)数据流,综合考虑一种基于接入路由器之间测试数据构造的网格状态信息以及从路由器采集的端口状态信息作为度量值计算最优路径,并将路径编码到数据平面;由数据平面负责将数据包从入口节点转发到正确的出口节点。该方案能够针对运营商级别的大规模网络应用,尽可能小地对现有网络设备进行改动,并且而且能够针对不同的大流量业务提供差异化路由转发功能。In this embodiment, since it is considered to be deployed in the large-scale network of an actual operator, and the existing network equipment is used as much as possible, the scheme of separating the control plane and the data plane through the model of using source routing through SR is adopted. From the perspective of the overall network, the plane considers a grid state information constructed based on test data between access routers and ports collected from routers for different high-traffic service scenarios (download and video services) data streams. The state information is used as a metric to calculate the optimal path and encode the path to the data plane; the data plane is responsible for forwarding packets from the ingress node to the correct egress node. The solution can make changes to existing network equipment as little as possible for large-scale network applications at the operator level, and can provide differentiated routing and forwarding functions for different high-traffic services.

在本实施例中,SR的数据平面使用MPLS(Multi-Protocol Label Switching,多协议标签交换)的数据平面,控制平面利用PCE架构实现,PCE架构由路径计算单元(PathComputation Element,PCE)和路径计算客户端(Path Computation Client,PCC)构成,PCE和PCC使用PCEP(Path Computation Element Communication Protocol,PCEP)进行通信。In this embodiment, the data plane of the SR uses the data plane of MPLS (Multi-Protocol Label Switching, Multi-Protocol Label Switching), and the control plane is implemented by using the PCE architecture. The PCE architecture is composed of a Path Computation Element (PCE) and a path computation A client (Path Computation Client, PCC) is formed, and the PCE and the PCC use PCEP (Path Computation Element Communication Protocol, PCEP) to communicate.

如图2所示,PCE作为SR的控制平面,为SR数据平面计算流量工程的路径,SR的数据平面使用MPLS的数据平面;图中SR数据平面的路由器作为PCC。As shown in Figure 2, the PCE acts as the control plane of the SR and calculates the traffic engineering path for the SR data plane. The SR data plane uses the MPLS data plane; the router of the SR data plane in the figure acts as the PCC.

PCE通过流量工程数据库(Traffic Engineering Database,TE-DB)收集全网拓扑信息,托管标签交换路径数据库(Label Switched Path Database,LSP-DB)收集LSP State信息,全局管理和统一分配网络资源,集中计算LSP业务路径,由SR形成MPLS隧道用于数据平面转发;PCC为转发网元,当需要计算LSP业务路径时,会向PCE发起路径计算请求,获取由SR形成的MPLS隧道数据结果反馈给PCC。PCE采用有状态的PCE技术,在PCE和流量工程数据库TE-DB之间遵循严格同步,在设置活跃路径以及使用网络的预留资源时保持状态,具有以下的功能:(1)、通过IGP以及流量工程资源更新发现网络拓扑以及资源;(2)、收集链路的实时数据信息、转发平面路由器端口数据并推送至链路实时大数据分析平台,并接收链路及端口数据分析结果;(3)、监测网络状态,测量实时的流量需求和LSP统计,基于这些信息重新优化路径,计算完成后形成标签栈;(4)、使用PCEP协议接受来自数据平面的请求并将计算完成的标签栈下发给设备,指导设备按照标签栈指定的路径进行转发。PCE collects network-wide topology information through Traffic Engineering Database (TE-DB), hosts Label Switched Path Database (LSP-DB) to collect LSP State information, globally manages and uniformly allocates network resources, and centralizes computing The LSP service path is formed by the SR to form an MPLS tunnel for data plane forwarding; the PCC is a forwarding network element. When the LSP service path needs to be calculated, a path calculation request is sent to the PCE, and the MPLS tunnel data result formed by the SR is fed back to the PCC. PCE adopts stateful PCE technology, follows strict synchronization between PCE and traffic engineering database TE-DB, maintains state when setting active paths and using reserved resources of the network, and has the following functions: (1), through IGP and The traffic engineering resource update discovers the network topology and resources; (2), collect the real-time data information of the link, forward the plane router port data and push it to the link real-time big data analysis platform, and receive the link and port data analysis results; (3) ), monitor the network status, measure real-time traffic demand and LSP statistics, re-optimize the path based on this information, and form a label stack after the calculation is completed; (4), use the PCEP protocol to accept the request from the data plane and put the calculated label stack down It is sent to the device to instruct the device to forward it according to the path specified by the label stack.

Mesh网络即”无线网格网络”,它是“多跳(multi-hop)”网络,是由ad hoc网络发展而来,是解决“最后一公里”问题的关键技术之一。在向下一代网络演进的过程中,无线是一个不可缺的技术。无线mesh可以与其它网络协同通信。是一个动态的可以不断扩展的网络架构,任意的两个设备均可以保持无线互联。Mesh network is a "wireless mesh network", which is a "multi-hop" network, developed from an ad hoc network, and is one of the key technologies to solve the "last mile" problem. In the process of evolution to the next generation network, wireless is an indispensable technology. Wireless mesh can cooperate with other networks to communicate. It is a dynamic and scalable network architecture, and any two devices can maintain wireless interconnection.

在本实施例中,基于分段路由中路由器的各端口分别到相邻路由器的丢包率、往返时延和抖动,获取表征网格状态信息的Mesh权重计算参数;基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数;以Mesh权重计算参数和端口权重计算参数作为PCE路径计算度量值计算最优路径的参数,根据业务流量的需求进行差异化调整的PCE路径计算度量值,基于此度量值PCE进行最优路径计算。够针对运营商级别的大规模网络应用,尽可能小地对现有网络设备进行改动,并且而且能够针对不同的大流量业务提供差异化路由转发功能。In this embodiment, based on the packet loss rate, round-trip delay and jitter of each port of the router in segment routing to adjacent routers, the mesh weight calculation parameters representing mesh state information are obtained; The number of error packets in the redundancy check CRC obtains the port weight calculation parameter representing the port status information; the Mesh weight calculation parameter and the port weight calculation parameter are used as the PCE path calculation metric value to calculate the optimal path parameters, and differentiated according to the needs of service traffic The adjusted PCE path calculation metric value, and the PCE performs optimal path calculation based on this metric value. For large-scale network applications at the operator level, the existing network equipment can be changed as little as possible, and it can provide differentiated routing and forwarding functions for different high-traffic services.

在上述实施例的基础上,获取表征网格状态信息的Mesh权重计算参数前,还包括:On the basis of the above embodiment, before acquiring the Mesh weight calculation parameter representing the mesh state information, the method further includes:

基于不同的地市边缘路由器节点探针进行TraceRoute测试和ping测试,获取直接链路端口之间的丢包率、往返时延和抖动。Perform TraceRoute test and ping test based on different city edge router node probes to obtain the packet loss rate, round-trip delay and jitter between direct link ports.

在本实施例中,路径计算时所使用度量值综合Mesh权重计算参数和路由器端口信息计算参数构建,具体的,如图2所示,为MeshICMPing测试架构示意图,基于MeshICMPing全局定位分析根据不同的地市边缘路由器节点探针,两两进行每天12*24轮(5分钟颗粒度),每轮N次的TraceRoute+Ping测试。根据TraceRoute测试及Ping测试结果获取直连链路端口之间的丢包率(Packet Loss Rate)L、抖动(Jitter)J、以及时延(Delay)D信息。In this embodiment, the metric values used in the path calculation are constructed by integrating the Mesh weight calculation parameters and the router port information calculation parameters. Specifically, as shown in Figure 2, it is a schematic diagram of the MeshICMPing test architecture. Based on the MeshICMPing global positioning analysis, according to different locations For the city edge router node probes, 12*24 rounds per day (5-minute granularity) are carried out in pairs, and each round of TraceRoute+Ping tests is performed N times. Obtain the packet loss rate (Packet Loss Rate) L, jitter (Jitter) J, and delay (Delay) D information between directly connected ports based on the TraceRoute test and Ping test results.

如图3所示,根据RT1至RT7的TraceRoute测试结果,可获取RT1至RT7的路由路径为RT1→RT11→RT12→RT15→RT7,RT1至每跳路由器三次ICMP包返回时间TRT1→RT11(1)、TRT1→RT11(2)以及TRT1→RT11(3)。As shown in Figure 3, according to the TraceRoute test results from RT1 to RT7, the routing path from RT1 to RT7 can be obtained as RT1→RT11→RT12→RT15→RT7, and the return time of three ICMP packets from RT1 to each hop router TRT1→RT11(1) , TRT1→RT11(2), and TRT1→RT11(3).

假设RT1至RT7的Ping测试结果,可获取RT1至RT7的ICMP包返回时延以及抖动信息,并通过每台路由器收集的信息计算获取TraceRoute每段直连链路(TRT1→RT11(1),…,TRT1→RT11(N);TRT11→RT12(1),…,TRT11→RT12(N);等)的往返时延(Delay,D)、抖动(Jitter,J)以及丢包率(Packet Loss Rate,L)等信息。Assuming the ping test results of RT1 to RT7, the return delay and jitter information of ICMP packets from RT1 to RT7 can be obtained, and each direct link of TraceRoute can be obtained by calculating the information collected by each router (TRT1→RT11(1),… , TRT1→RT11(N); TRT11→RT12(1),…,TRT11→RT12(N); etc.) round-trip delay (Delay, D), jitter (Jitter, J) and packet loss rate (Packet Loss Rate) , L) and other information.

在上述各实施例的基础上,获取表征网格状态信息的Mesh权重计算参数,具体包括:On the basis of the above embodiments, the Mesh weight calculation parameters representing mesh state information are obtained, specifically including:

基于路由器x的M个端口分别到相邻路由器的丢包率、往返时延、抖动获取表征网格状态信息的Mesh权重计算参数θMesh(pcc(m)x)为:Based on the packet loss rate, round-trip delay, and jitter from the M ports of router x to neighboring routers, respectively, the mesh weight calculation parameter θ Mesh (pcc(m) x ) representing mesh state information is obtained as:

Figure BDA0001906291010000101
Figure BDA0001906291010000101

上式(1)中,Ld(pcc(m)x)、Dd(pcc(m)x)以及Jd(pcc(m)x)分别表示路由器x的端口m的丢包率、往返时延和抖动对M个端口平均值的欧式距离;σL、σD以及σJ分别为端口m在丢包率、往返时延以及抖动对M个端口平均值的标准差。In the above formula (1), L d (pcc(m) x ), D d (pcc(m) x ) and J d (pcc(m) x ) represent the packet loss rate and round-trip time of port m of router x, respectively. The Euclidean distance of delay and jitter to the average value of M ports; σ L , σ D and σ J are the standard deviation of the packet loss rate, round-trip delay and jitter of port m to the average value of M ports, respectively.

在本实施例中,Ld(pcc(m)x)、Jd(pcc(m)x)以及Dd(pcc(m)x),σL、σJ以及σD如下式(2)、(3)所示:In this embodiment, L d (pcc(m) x ), J d (pcc(m) x ) and D d (pcc(m) x ), σ L , σ J and σ D are as follows: (3) shows:

Figure BDA0001906291010000102
Figure BDA0001906291010000102

Figure BDA0001906291010000103
Figure BDA0001906291010000103

上式(2)、(3)中,L(pccx)、D(pccx)和J(pccx)为分别为第x台路由器的端口m的丢包率、往返时延和抖动;

Figure BDA0001906291010000104
Figure BDA0001906291010000105
为分别为第x台路由器的M个端口的平均丢包率、平均往返时延和平均抖动。In the above formulas (2) and (3), L(pcc x ), D(pcc x ) and J(pcc x ) are the packet loss rate, round-trip delay and jitter of port m of the xth router respectively;
Figure BDA0001906291010000104
and
Figure BDA0001906291010000105
are the average packet loss rate, average round-trip delay and average jitter of M ports of the xth router, respectively.

在上述各实施例的基础上,基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数前,还包括:On the basis of the foregoing embodiments, before obtaining the port weight calculation parameter representing the port state information based on the remaining bandwidth of the link and the number of CRC error packets, the method further includes:

基于现网设备上部署简单网络管理协议SNMP和NetStream采集链路剩余带宽和设定时间端口收到的CRC错包数目。Based on the deployment of Simple Network Management Protocol SNMP and NetStream on existing network devices, collect the remaining bandwidth of the link and the number of CRC error packets received by the port within the set time.

在本实施例中,归一化的端口权重计算参数θPort(pcc(m)x)是基于现网设备上部署SNMP和NetStream等协议采集的链路剩余带宽(Residual Band Width)RBW、以及较短时段端口收到的CRC(Cyclic Redundancy Check,循环冗余校验)错包数目等数据获得。In this embodiment, the normalized port weight calculation parameter θ Port (pcc(m) x ) is based on the remaining link bandwidth (Residual Band Width) RBW collected based on protocols such as SNMP and NetStream deployed on existing network devices, and Data such as the number of CRC (Cyclic Redundancy Check, Cyclic Redundancy Check) error packets received by the port in a short period of time are obtained.

在上述各实施例的基础上,所述端口权重计算参数θPort(pcc(m)x)为:On the basis of the above embodiments, the port weight calculation parameter θ Port (pcc(m) x ) is:

Figure BDA0001906291010000111
Figure BDA0001906291010000111

上式中,RBWd(pcc(m)x)、CRCd(pcc(m)x)分别表示路由器x的端口m在剩余带宽以和CRC错包数目针对M个端口平均值的欧式距离,σRBW、σCRC分别为端口m在剩余带宽以及CRC错包数目对M个端口平均值的标准差。In the above formula, RBW d (pcc(m) x ) and CRC d (pcc(m) x ) respectively represent the Euclidean distance between the remaining bandwidth and the number of CRC error packets of port m of router x to the average value of M ports, σ RBW and σ CRC are the standard deviation of the residual bandwidth of port m and the number of CRC error packets to the average value of M ports, respectively.

在本实施例中,RBWd(pcc(m)x)、CRCd(pcc(m)x)、σRBW和σCRC如下式(5)、(6)所示:In this embodiment, RBW d (pcc(m) x ), CRC d (pcc(m) x ), σ RBW and σ CRC are shown in the following equations (5) and (6):

Figure BDA0001906291010000112
Figure BDA0001906291010000112

Figure BDA0001906291010000113
Figure BDA0001906291010000113

上式中,RBW(pcc(m)x)和CRC(pcc(m)x)分别为路由器x的端口m在剩余带宽以和CRC错包数目,

Figure BDA0001906291010000114
Figure BDA0001906291010000115
分别为路由器x在M个端口m的平均剩余带宽以和平均CRC错包数目。In the above formula, RBW(pcc(m) x ) and CRC(pcc(m) x ) are the number of error packets in the remaining bandwidth and CRC of port m of router x, respectively,
Figure BDA0001906291010000114
and
Figure BDA0001906291010000115
are the average remaining bandwidth of router x on M ports m and the average number of CRC error packets, respectively.

在上述各实施例的基础上,基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,具体包括:On the basis of the above embodiments, the path calculation unit PCE path calculation metric value is obtained based on the Mesh weight calculation parameter and the port weight calculation parameter, which specifically includes:

路由器x端口m的Mesh权重计算参数θMesh(pcc(m)x)和端口权重计算参数θPort(pcc(m)x),以及θMesh(pcc(m)x)的权值α和θPort(pcc(m)x)的权值β,构建路由器x的第m个端口的PCE路径计算度量值的加权函数;Mesh weight calculation parameter θ Mesh (pcc(m) x ) and port weight calculation parameter θ Port (pcc(m) x ) of router x port m, and weights α and θ Port of θ Mesh (pcc(m) x ) The weight β of (pcc(m) x ) is used to construct a weighting function for calculating the metric value of the PCE path of the mth port of router x;

基于业务流量类型获取权值α和权值β的取值,以得到PCE路径计算度量值的加权系数,并基于所述加权系数得到PCE路径计算度量值。The values of the weight α and the weight β are obtained based on the service traffic type to obtain the weighting coefficient of the PCE path calculation metric value, and the PCE path calculation metric value is obtained based on the weighting coefficient.

在本实施例中,PCE路径计算度量值时基于Mesh权重计算参数θMesh(pcc(m)x)和端口权重计算参数θPort(pcc(m)x),应用线性决策算法主要以这两个参数作为判别依据,计算LSP的度量值。路由器x的第m个端口的度量值的加权函数如下式(7)所示:In this embodiment, the PCE path calculates the metric value based on the mesh weight calculation parameter θ Mesh (pcc(m) x ) and the port weight calculation parameter θ Port (pcc(m) x ). The linear decision algorithm is mainly based on these two The parameters are used as the basis for discrimination, and the metric value of the LSP is calculated. The weighting function of the metric value of the mth port of router x is shown in the following formula (7):

Figure BDA0001906291010000121
Figure BDA0001906291010000121

其中θMesh(pcc(m)x)和θPort(pcc(m)x)分别为路由器x端口m的Mesh权重计算参数和端口权重计算参数,α、β分别是θMesh(pcc(m)x)和θPort(pcc(m)x)的权值,α+β=1。度量值计算采用最小判决的判决规则。为确定权值,本实施例中构建判断矩阵,如下式(8)所示:where θ Mesh (pcc(m) x ) and θ Port (pcc(m) x ) are the Mesh weight calculation parameters and port weight calculation parameters of router x port m, respectively, α and β are θ Mesh (pcc(m) x ) and the weight of θ Port (pcc(m) x ), α+β=1. The metric value calculation adopts the decision rule of the minimum decision. In order to determine the weights, a judgment matrix is constructed in this embodiment, as shown in the following formula (8):

Figure BDA0001906291010000122
Figure BDA0001906291010000122

上式(8)中,a12为β相对于Th的重要程度,a21为α相对于β的重要程度,a12=1/a21。令a12=a,则加权系数计算公式如下式(9)所示:In the above formula (8), a 12 is the degree of importance of β with respect to Th , a 21 is the degree of importance of α with respect to β, and a 12 =1/a 21 . Let a 12 =a, the calculation formula of the weighting coefficient is shown in the following formula (9):

Figure BDA0001906291010000123
Figure BDA0001906291010000123

当业务流量为下载类业务流量时,带宽及传输质量影响对策略判决的影响相对较大,则a12>a21,即a>1,α<β;当业务流量为视频类流量时,时延、丢包率、抖动对策略判断的影响相对较大,则a12<a21,即0<a<1,α>β。When the service traffic is download-type traffic, the influence of bandwidth and transmission quality on policy decision is relatively large, then a 12 >a 21 , that is, a>1, α<β; when the service traffic is video-type traffic, when Delay, packet loss rate, and jitter have a relatively large impact on policy judgment, then a 12 <a 21 , that is, 0<a<1, α>β.

基于通过现往中业务流量类型即可得到a值,并获取PCE路径计算度量值如下式(10)所示:The value of a can be obtained based on the type of service traffic passing through the current and the past, and the calculation metric value of the PCE path is obtained as shown in the following formula (10):

Figure BDA0001906291010000124
Figure BDA0001906291010000124

在上述各实施例的基础上,并基于PCE路径计算度量值获得源点到目的节点的最短路径,具体包括:On the basis of the above embodiments, and based on the PCE path calculation metric value to obtain the shortest path from the source point to the destination node, which specifically includes:

基于获得的PCE路径计算度量值,PCE根据Dijkstra算法计算源点到目的节点最短路径。The metric value is calculated based on the obtained PCE path, and the PCE calculates the shortest path from the source point to the destination node according to the Dijkstra algorithm.

在本实施例中,基于接入路由器之间测试数据构造的网格信息以及从路由器采集的端口状态信息,根据业务流量的需求进行差异化调整的度量值,基于此度量值PCE进行最优路径计算。In this embodiment, based on the grid information constructed by the test data between the access routers and the port state information collected from the routers, the metric value that is differentially adjusted according to the needs of the service traffic, the PCE performs the optimal path based on the metric value. calculate.

本发明实施例还提供一种基于分段路由的网络选路装置,基于上述各实施例的基于分段路由的网络选路方法,如图4所示,包括第一模块30和第二模块40,其中:An embodiment of the present invention further provides a network routing device based on segment routing, and the network routing method based on segment routing based on the above embodiments, as shown in FIG. 4 , includes a first module 30 and a second module 40 ,in:

第一模块30基于分段路由中路由器的各端口分别到相邻路由器的丢包率、往返时延和抖动,获取表征网格状态信息的Mesh权重计算参数;基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数;The first module 30 obtains the mesh weight calculation parameter representing mesh state information based on the packet loss rate, round-trip delay and jitter of each port of the router in the segment routing to the adjacent router respectively; based on the remaining bandwidth of the link and the cyclic redundancy Check the number of CRC error packets to obtain the port weight calculation parameter representing the port status information;

第二模块40基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,并基于PCE路径计算度量值获得源点到目的节点的最短路径。The second module 40 obtains the PCE path calculation metric value of the path calculation unit based on the Mesh weight calculation parameter and the port weight calculation parameter, and obtains the shortest path from the source point to the destination node based on the PCE path calculation metric value.

图5为本发明实施例提供的电子设备的实体结构示意图,如图5所示,该电子设备可以包括:处理器(processor)810、通信接口(Communications Interface)820、存储器(memory)830和通信总线840,其中,处理器810,通信接口820,存储器830通过通信总线840完成相互间的通信。处理器810可以调用存储在存储器830上并可在处理器810上运行的计算机程序,以执行上述各实施例提供的基于分段路由的网络选路方法,例如包括:FIG. 5 is a schematic diagram of an entity structure of an electronic device provided by an embodiment of the present invention. As shown in FIG. 5 , the electronic device may include: a processor (processor) 810, a communications interface (Communications Interface) 820, a memory (memory) 830, and a communication The bus 840, wherein the processor 810, the communication interface 820, and the memory 830 complete the communication with each other through the communication bus 840. The processor 810 may call a computer program stored in the memory 830 and run on the processor 810 to execute the segment routing-based network routing method provided in the above embodiments, for example, including:

基于分段路由中路由器的各端口分别到相邻路由器的丢包率、往返时延和抖动,获取表征网格状态信息的Mesh权重计算参数;基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数;Based on the packet loss rate, round-trip delay and jitter of each port of the router in segment routing to adjacent routers, the mesh weight calculation parameters representing mesh state information are obtained; based on the remaining bandwidth of the link and the CRC error of the cyclic redundancy check The number of packets obtains the port weight calculation parameter representing the port state information;

基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,并基于PCE路径计算度量值获得源点到目的节点的最短路径。The PCE path calculation metric value of the path calculation unit is obtained based on the Mesh weight calculation parameter and the port weight calculation parameter, and the shortest path from the source point to the destination node is obtained based on the PCE path calculation metric value.

此外,上述的存储器830中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 830 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solutions of the embodiments of the present invention are essentially, or the parts that make contributions to the prior art or the parts of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments 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), magnetic disk or optical disk and other media that can store program codes .

本发明实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的基于分段路由的网络选路方法,例如包括:Embodiments of the present invention further provide a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the computer program is implemented to execute the segment routing-based network routing method provided by the foregoing embodiments , for example including:

基于分段路由中路由器的各端口分别到相邻路由器的丢包率、往返时延和抖动,获取表征网格状态信息的Mesh权重计算参数;基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数;Based on the packet loss rate, round-trip delay and jitter of each port of the router in segment routing to adjacent routers, the mesh weight calculation parameters representing mesh state information are obtained; based on the remaining bandwidth of the link and the CRC error of the cyclic redundancy check The number of packets obtains the port weight calculation parameter representing the port state information;

基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,并基于PCE路径计算度量值获得源点到目的节点的最短路径。The PCE path calculation metric value of the path calculation unit is obtained based on the Mesh weight calculation parameter and the port weight calculation parameter, and the shortest path from the source point to the destination node is obtained based on the PCE path calculation metric value.

本发明实施例还提供本实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行如上述的基于分段路由的网络选路方法,例如包括:An embodiment of the present invention also provides a computer program product disclosed in this embodiment, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions When executed by a computer, the computer can execute the above-mentioned network routing method based on segment routing, for example, including:

基于分段路由中路由器的各端口分别到相邻路由器的丢包率、往返时延和抖动,获取表征网格状态信息的Mesh权重计算参数;基于链路剩余带宽和循环冗余校验CRC错包数目获得表征端口状态信息的端口权重计算参数;Based on the packet loss rate, round-trip delay and jitter of each port of the router in segment routing to adjacent routers, the mesh weight calculation parameters representing mesh state information are obtained; based on the remaining bandwidth of the link and the CRC error of the cyclic redundancy check The number of packets obtains the port weight calculation parameter representing the port state information;

基于所述Mesh权重计算参数和所述端口权重计算参数获得路径计算单元PCE路径计算度量值,并基于PCE路径计算度量值获得源点到目的节点的最短路径。The PCE path calculation metric value of the path calculation unit is obtained based on the Mesh weight calculation parameter and the port weight calculation parameter, and the shortest path from the source point to the destination node is obtained based on the PCE path calculation metric value.

综上所述,本发明实施例提供的一种基于分段路由的网络选路方法和装置,基于不同大流量业务场景数据流构建的SDN部署架构,综合考虑基于接入路由器之间测试数据构造的网格信息以及从路由器采集的端口状态信息作为度量值计算最优路径方法,针对SDN部署架构,本发明通过如何尽可能利用现网设备进行适应不同大流量业务路由调整;基于接入路由器之间测试数据构造的网格信息以及从路由器采集的端口状态信息,根据业务流量的需求进行差异化调整的度量值,基于此度量值PCE进行最优路径计算。To sum up, the embodiment of the present invention provides a method and device for network routing based on segment routing, an SDN deployment architecture constructed based on data streams in different high-traffic service scenarios, and a comprehensive consideration based on the construction of test data between access routers. The grid information and the port state information collected from the router are used as the metric value to calculate the optimal path method. For the SDN deployment architecture, the present invention uses the existing network equipment as much as possible to adapt to different high-traffic services routing adjustment; based on the access router The grid information constructed from the inter-test data and the port status information collected from the routers, and the metric value that is adjusted differently according to the needs of the service traffic, and the PCE calculates the optimal path based on this metric value.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments 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, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A network routing method based on segmented routing is characterized by comprising the following steps:
acquiring Mesh weight calculation parameters representing grid state information based on packet loss rate, round-trip delay and jitter from each port of a router to an adjacent router in the segmented routing; acquiring port weight calculation parameters representing port state information based on link residual bandwidth and Cyclic Redundancy Check (CRC) error packet number;
and acquiring a PCE path calculation metric value of a path calculation unit based on the Mesh weight calculation parameter and the port weight calculation parameter, and acquiring the shortest path from a source point to a destination node based on the PCE path calculation metric value.
2. The method of claim 1, wherein before obtaining the Mesh weight calculation parameter characterizing the Mesh state information, the method further comprises:
and performing TraceRoute test and ping test based on different city edge router node probes to obtain the packet loss rate, round-trip delay and jitter among the direct link ports.
3. The method according to claim 1, wherein obtaining the Mesh weight calculation parameter representing the Mesh state information specifically comprises:
mesh weight calculation parameter theta representing grid state information is obtained based on packet loss rate, round-trip delay and jitter from M ports of router x to adjacent routers respectivelyMesh(pcc(m)x) Comprises the following steps:
Figure FDA0001906290000000011
in the above formula, Ld(pcc(m)x)、Dd(pcc(m)x) And Jd(pcc(m)x) Are respectively provided withRepresenting the packet loss rate, round trip delay and Euclidean distance of jitter to the average value of M ports of the port M of the router x; sigmaL、σDAnd σJThe packet loss rate, round trip delay and standard deviation of jitter to the average value of the M ports are respectively measured at the port M.
4. The method of claim 1, wherein before obtaining port weight calculation parameters characterizing port status information based on link residual bandwidth and Cyclic Redundancy Check (CRC) number of error packets, the method further comprises:
based on the simple network management protocol SNMP and the NetStream deployed on the existing network equipment, the residual bandwidth of the link and the number of CRC error packets received by the set time port are collected.
5. A method for routing a network based on segmented routing according to claim 3, characterized in that the port weight calculation parameter θPort(pcc(m)x) Comprises the following steps:
Figure FDA0001906290000000021
in the above formula, RBWd(pcc(m)x)、CRCd(pcc(m)x) Respectively representing the Euclidean distance, σ, of port M of router x in the residual bandwidth and the CRC error packet number for the average value of M portsRBW、σCRCThe standard deviation of the residual bandwidth and the CRC error packet number of the port M to the average value of the M ports respectively.
6. The method for selecting a route based on a segment routing according to claim 5, wherein obtaining a path computation metric of a Path Computation Element (PCE) based on the Mesh weight computation parameter and the port weight computation parameter specifically comprises:
mesh weight calculation parameter theta of x port m of routerMesh(pcc(m)x) And port weight calculation parameter θPort(pcc(m)x) And thetaMesh(pcc(m)x) Right of (1)Values α and θPort(pcc(m)x) The weight β, a weighting function of the PCE path calculation metric value of the mth port of the router x is constructed;
and acquiring values of the weight α and the weight β based on the service traffic type to obtain a weighting coefficient of the PCE path computation metric value, and obtaining the PCE path computation metric value based on the weighting coefficient.
7. The method according to claim 1, wherein the obtaining the shortest path from the source node to the destination node based on the PCE path computation metric value comprises:
and based on the obtained PCE path calculation metric value, the PCE calculates the shortest path from the source point to the destination node according to the Dijkstra algorithm.
8. A network routing device based on segment routing, comprising:
the first module is used for acquiring Mesh weight calculation parameters representing grid state information based on the packet loss rate, round-trip delay and jitter from each port of a router in the segmented routing to an adjacent router; acquiring port weight calculation parameters representing port state information based on link residual bandwidth and Cyclic Redundancy Check (CRC) error packet number;
and the second module is used for obtaining a PCE path calculation metric value of the path calculation unit based on the Mesh weight calculation parameter and the port weight calculation parameter, and obtaining the shortest path from a source node to a destination node based on the PCE path calculation metric value.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 7 are implemented when the processor executes the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201811533483.6A 2018-12-14 2018-12-14 Network routing method and device based on segmented routing Active CN111327525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811533483.6A CN111327525B (en) 2018-12-14 2018-12-14 Network routing method and device based on segmented routing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811533483.6A CN111327525B (en) 2018-12-14 2018-12-14 Network routing method and device based on segmented routing

Publications (2)

Publication Number Publication Date
CN111327525A true CN111327525A (en) 2020-06-23
CN111327525B CN111327525B (en) 2021-11-30

Family

ID=71164846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811533483.6A Active CN111327525B (en) 2018-12-14 2018-12-14 Network routing method and device based on segmented routing

Country Status (1)

Country Link
CN (1) CN111327525B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472659A (en) * 2021-07-02 2021-10-01 中国电信股份有限公司 Method and device for determining forwarding path and SDN controller
CN113873548A (en) * 2021-09-03 2021-12-31 中盈优创资讯科技有限公司 One-key opening method and device for white box equipment
CN114363250A (en) * 2020-09-30 2022-04-15 瞻博网络公司 Recalculation of Multipath in Networks Supporting Segment Routing
CN114363249A (en) * 2020-09-30 2022-04-15 瞻博网络公司 Bandwidth constraints for multi-path segment routing
CN114531393A (en) * 2021-12-30 2022-05-24 百果园技术(新加坡)有限公司 Method, device, equipment, medium and program product for issuing segmented routing strategy
WO2022110948A1 (en) * 2020-11-25 2022-06-02 华为技术有限公司 Path weight allocation method and device
CN118921630A (en) * 2024-10-09 2024-11-08 浙江大华技术股份有限公司 Multicast method, system, equipment and storage medium of Mesh network
CN119584236A (en) * 2024-11-29 2025-03-07 南京邮电大学 A reliability assurance method for wireless mesh networks based on adaptive network coding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110222506A1 (en) * 2008-10-14 2011-09-15 Szymanksi Tadeusz H Delay and jitter wireless mesh network scheduling
US8116197B2 (en) * 2006-11-02 2012-02-14 Eci Telecom Ltd. Method for finding protected path in mesh networks
CN107770065A (en) * 2017-10-10 2018-03-06 山东大学 A kind of streaming media path selecting system based on software defined network SDN
CN108282707A (en) * 2017-12-22 2018-07-13 西安电子科技大学 Network on mating plate path calculation method under optical circuit give-and-take conditions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8116197B2 (en) * 2006-11-02 2012-02-14 Eci Telecom Ltd. Method for finding protected path in mesh networks
US20110222506A1 (en) * 2008-10-14 2011-09-15 Szymanksi Tadeusz H Delay and jitter wireless mesh network scheduling
CN107770065A (en) * 2017-10-10 2018-03-06 山东大学 A kind of streaming media path selecting system based on software defined network SDN
CN108282707A (en) * 2017-12-22 2018-07-13 西安电子科技大学 Network on mating plate path calculation method under optical circuit give-and-take conditions

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杭彦希等: "一种片上网络拥堵感知的自适应容错路由算法", 《小型微型计算机系统》 *
王勇智等: "基于时延调节的移动自组网多路径路由策略", 《电子技术》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363250A (en) * 2020-09-30 2022-04-15 瞻博网络公司 Recalculation of Multipath in Networks Supporting Segment Routing
CN114363249A (en) * 2020-09-30 2022-04-15 瞻博网络公司 Bandwidth constraints for multi-path segment routing
CN114363249B (en) * 2020-09-30 2023-09-12 瞻博网络公司 Bandwidth constraints for multipath segment routing
US11818032B2 (en) 2020-09-30 2023-11-14 Juniper Networks, Inc. Bandwidth constraint for multipath segment routing
WO2022110948A1 (en) * 2020-11-25 2022-06-02 华为技术有限公司 Path weight allocation method and device
CN113472659A (en) * 2021-07-02 2021-10-01 中国电信股份有限公司 Method and device for determining forwarding path and SDN controller
CN113472659B (en) * 2021-07-02 2023-04-18 中国电信股份有限公司 Method and device for determining forwarding path and SDN controller
CN113873548A (en) * 2021-09-03 2021-12-31 中盈优创资讯科技有限公司 One-key opening method and device for white box equipment
CN114531393A (en) * 2021-12-30 2022-05-24 百果园技术(新加坡)有限公司 Method, device, equipment, medium and program product for issuing segmented routing strategy
CN114531393B (en) * 2021-12-30 2023-11-28 百果园技术(新加坡)有限公司 Method, device, equipment and medium for issuing segment routing strategy
CN118921630A (en) * 2024-10-09 2024-11-08 浙江大华技术股份有限公司 Multicast method, system, equipment and storage medium of Mesh network
CN119584236A (en) * 2024-11-29 2025-03-07 南京邮电大学 A reliability assurance method for wireless mesh networks based on adaptive network coding

Also Published As

Publication number Publication date
CN111327525B (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN111327525A (en) Network routing method and device based on segmented routing
US10742556B2 (en) Tactical traffic engineering based on segment routing policies
US9800507B2 (en) Application-based path computation
EP3222005B1 (en) Passive performance measurement for inline service chaining
US9705775B2 (en) Passive performance measurement for inline service chaining
US9185027B2 (en) Method and apparatus for resilient routing of control traffic in a split-architecture system
WO2021007963A1 (en) Route distribution method and controller, information routing method and network node device
US20150295813A1 (en) Method and Apparatus for Determining Traffic Forwarding Path and Communications System
CN107370673A (en) Method, controller and system for establishing a forwarding path in a network
Vdovin et al. Network utilization optimizer for SD-WAN
CN109286563B (en) A data transmission control method and device
US12294511B2 (en) Safely engineering egress traffic changes
Arins Latency factor in worldwide IP routed networks
Rohitaksha et al. Routing in hybrid software defined networking using hop-count approach
Tripathi et al. Ensuring reliability in cloud computing and comparison on IPv6 encouraged with protocols
Khang et al. Performance evaluation of wireless routing protocols: RIP vs OSPF
Zhao et al. Hybrid routing by joint optimization of per-flow routing and tag-based routing in software-defined networks
Das et al. Network Performance Analysis of Dynamic Routing protocols real time applications
Maila et al. Segment routing
Triwerdaya et al. IMPLEMENTATION OF LOAD BALANCE EQUAL COST MULTI PATH (ECMP) BETWEEN ROUTING PROTOCOL BORDER GATEWAY PROTOCOL (BGP) AND OPEN SHORTEST PATH FIRST (OSPF) USING DUAL CONNECTION
Thiruvalar et al. A survey on intradomain and interdomain routing in traditional IP and MPLS based VPN environments
Touihri et al. SDN-Based Batch Flow Routing in CamCube Server-Only Data Center Networks
Golshani et al. Performance evaluation of MPLS-enabled communications infrastructure for wide area monitoring systems
Ruelas et al. Implementation of neural switch using OpenFlow as load balancing method in data center
Alzaben End to End Routing Algorithms in Arbitrary Networks

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