CN115914071A - Message transmission analysis method combining SRv6 with k nearest neighbor algorithm - Google Patents

Message transmission analysis method combining SRv6 with k nearest neighbor algorithm Download PDF

Info

Publication number
CN115914071A
CN115914071A CN202211320372.3A CN202211320372A CN115914071A CN 115914071 A CN115914071 A CN 115914071A CN 202211320372 A CN202211320372 A CN 202211320372A CN 115914071 A CN115914071 A CN 115914071A
Authority
CN
China
Prior art keywords
srv6
node
nearest neighbor
neighbor algorithm
hop
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.)
Pending
Application number
CN202211320372.3A
Other languages
Chinese (zh)
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.)
Guangxi Zhuang Autonomous Region Public Information Industry Co ltd
Original Assignee
Guangxi Zhuang Autonomous Region Public Information Industry 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 Guangxi Zhuang Autonomous Region Public Information Industry Co ltd filed Critical Guangxi Zhuang Autonomous Region Public Information Industry Co ltd
Priority to CN202211320372.3A priority Critical patent/CN115914071A/en
Publication of CN115914071A publication Critical patent/CN115914071A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message transmission analysis method combining SRv6 with a k nearest neighbor algorithm. The method comprises the following steps: s11, an address identifier generating module is initially allocated to the Srv6 network node; and S12, constructing a k-nearest neighbor algorithm model, an early warning model and generating an intelligent distribution identification module. The method combines the SRv6 message environment with the optimal path method in the SRv6 network, and improves the accuracy and flexible configuration of data transmission by adopting different distribution algorithms for an SRv6 message routing distribution mechanism.

Description

一种SRv6结合k近邻算法的报文传递分析方法A Message Delivery Analysis Method Combining SRv6 with k-Nearest Neighbor Algorithm

技术领域technical field

本发明属于网络技术与安全领域,具体涉及一种SRv6结合k近邻算法的报文传递分析方法。The invention belongs to the field of network technology and security, and in particular relates to a message delivery analysis method combining SRv6 with a k-nearest neighbor algorithm.

背景技术Background technique

随着计算机技术的飞速发展,信息网络已经成为社会发展的重要保证,在云网融合时代大背景下,灵活敏捷的网络服务能力直接影响运营商的竞争力,SR(SegmentRouting)是源路由技术的一种,SRv6是SR技术在IPv6网络的应用,SRv6的出现是一个巨大的创新,它结合SDN技术使能可编程的网络,这为云网时代的网络基础服务、增值网络服务提供了创新的土壤。With the rapid development of computer technology, information network has become an important guarantee for social development. In the era of cloud-network integration, flexible and agile network service capabilities directly affect the competitiveness of operators. SR (SegmentRouting) is the core of source routing technology. One, SRv6 is the application of SR technology in IPv6 networks. The emergence of SRv6 is a huge innovation. It combines SDN technology to enable programmable networks, which provides innovative solutions for basic network services and value-added network services in the cloud network era. soil.

中国发明专利CN201911329833.1,公开了一种基于SRv6网络的SID分配方法和装置,包括:获取至少一个网段,每个网段包括至少一个IPv6地址;将每个网段划分为不同类型且相互之间无交集的多个SID段;按照各个SID段的类型确定对应的分配方式;将各个SID段按照对应的分配方式为所述SR设备的路由信息分配对应的SID,以使SR设备根据分配的SID生成路由表。但是该发明只保证了SID的唯一性,不能确保路径最优。Chinese invention patent CN201911329833.1 discloses a SID allocation method and device based on an SRv6 network, including: obtaining at least one network segment, each network segment including at least one IPv6 address; dividing each network segment into different types and mutually A plurality of SID segments that do not overlap; determine the corresponding allocation method according to the type of each SID segment; allocate each SID segment to the routing information of the SR device according to the corresponding SID segment. SID to generate the routing table. However, this invention only guarantees the uniqueness of the SID, and cannot ensure the optimal path.

中国发明专利CN202010346913.4,公开了一种基于SRv6的数据处理方法及相关设备,包括:控制器生成分段标识,所述分段标识包括位置信息、指令以及路径标识,所述路径标识用于指示SRv6报文在SR网络中网络设备间的转发路径;所述控制器将所述分段标识发送至网络设备,以使得所述网络设备根据所述分段标识转发所述SRv6报文。但是该发明不能进行地址标识的智能分配。Chinese invention patent CN202010346913.4 discloses a SRv6-based data processing method and related equipment, including: the controller generates a segment identifier, the segment identifier includes position information, instructions, and a path identifier, and the path identifier is used for Indicating the forwarding path of the SRv6 message between network devices in the SR network; the controller sends the segment identifier to the network device, so that the network device forwards the SRv6 message according to the segment identifier. But this invention can't carry out the intelligent distribution of address identification.

发明内容Contents of the invention

本发明针对现有技术的不足,提供一种SRv6结合k近邻算法的报文传递分析方法,该方法突出了人工智能在SRv6网络中优选路径方法与SRv6报文环境相结合场景的地位,并通过对SRv6报文路由分配机制采用不同的分配算法,提升传输数据准确性及灵活配置。Aiming at the deficiencies of the prior art, the present invention provides a message delivery analysis method combining SRv6 with the k-nearest neighbor algorithm. This method highlights the position of artificial intelligence in the SRv6 network in which the optimal path method is combined with the SRv6 message environment. Different allocation algorithms are used for the SRv6 packet routing allocation mechanism to improve the accuracy of transmitted data and flexible configuration.

为了实现上述目的,本发明采用了以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

一种SRv6结合k近邻算法的报文传递分析方法,包括以下步骤:A message delivery analysis method combining SRv6 k-nearest neighbor algorithm, comprising the following steps:

S11、Srv6网络节点初始分配地址标识生成模块;S11, Srv6 network node initial allocation address identifier generation module;

S12、构建k近邻算法模型、预警模型并生成智能分配标识模块;S12. Construct a k-nearest neighbor algorithm model, an early warning model and generate an intelligent allocation identification module;

所述步骤S12包括以下步骤:Described step S12 comprises the following steps:

S121、通过k近邻算法模型得到发起节点关联的所有下一跳SR节点的故障率,再通过预警模型对所有下一跳SR节点进行告警概率预测;S121. Obtain the failure rate of all next-hop SR nodes associated with the initiating node through the k-nearest neighbor algorithm model, and then predict the alarm probability of all the next-hop SR nodes through the early warning model;

S122、通过对故障率及告警概率进行计算,判定最优下一跳SR节点,直到将到达目的SR节点的每一跳的最优SR节点获取到并串连成最优地址标识;S122. Determine the optimal next-hop SR node by calculating the failure rate and alarm probability, until the optimal SR node for each hop to the destination SR node is obtained and connected in series to form an optimal address identifier;

S123、如果最优地址标识每一跳SR节点优于初始地址标识每一跳SR节点,则更新IPv6扩展头SRH部分的Argument初始地址标识。S123. If the optimal address identifies each hop of the SR node is better than the initial address identifies each hop of the SR node, update the Argument initial address identification of the SRH part of the IPv6 extension header.

所述SRv6是一种网络转发技术,SR指Segment Routing技术,v6指原生IPv6,SRv6就是IPv6+Segment Routing;所述初始分配标识为当前SR节点到目标SR节点的所有路径Segment List所有的SID,从下到上串连到一起,中间用###号间隔,生成的初始地址标识;所述最优地址标识为通过构建k近邻算法模型、预警模型,增加了AI故障预判及路径智能优选,比较择优后代替初始分配标识,为超大型组网内复杂业务报文转发提供了新得解决方案,并减小了报文转发的资源消耗的,提升传输数据准确性及灵活配置。The SRv6 is a network forwarding technology, SR refers to the Segment Routing technology, v6 refers to native IPv6, and SRv6 is exactly IPv6+Segment Routing; the initial allocation identifier is all SIDs of all path Segment Lists from the current SR node to the target SR node, Connected together from bottom to top, with ### intervals in the middle, the initial address identification generated; the optimal address identification is through the construction of k-nearest neighbor algorithm model and early warning model, adding AI fault prediction and intelligent path optimization , and replace the initial allocation identifier after comparison and selection, it provides a new solution for complex service message forwarding in a super-large network, reduces resource consumption for message forwarding, and improves transmission data accuracy and flexible configuration.

所述SR是将报文转发路径切割为不同的分段,并在路径起始点往报文中插入分段信息,中间节点只需要按照报文里携带的分段信息转发即可,这样的路径分段,称之为“Segment”,并通过SID(Segment Identifier,段标识)来标识;The SR cuts the message forwarding path into different segments, and inserts segment information into the message at the starting point of the path. The intermediate node only needs to forward according to the segment information carried in the message. Such a path Segmentation, called "Segment", and identified by SID (Segment Identifier, segment identifier);

作为本发明SRv6结合k近邻算法的报文传递分析方法的进一步说明,所述步骤S11包括以下步骤:As a further description of the message delivery analysis method of SRv6 combined with the k-nearest neighbor algorithm of the present invention, the step S11 includes the following steps:

S111、获取当前SR节点到目标SR节点的所有路径Segment List;S111. Obtain all path Segment Lists from the current SR node to the target SR node;

S112、抽取Segment List所有的SID,从下到上串连到一起,中间用###号间隔,生成初始地址标识;S112, extract all the SIDs of the Segment List, connect them in series from bottom to top, and use ### as an interval in the middle to generate an initial address identifier;

S113、在当前SR节点向下一跳SR节点传输之前,将初始地址标识放入IPv6扩展头SRH部分的Argument里。S113. Before the current SR node transmits to the next-hop SR node, put the initial address identifier into the Argument of the SRH part of the IPv6 extension header.

所述Segment List为SRv6网络中当前SR节点向目标SR节点进行IPv6报文传输时,组网路由自动分配的一个自动到达目标SR节点的所有路径,它存储在SRv6报文协议SID里;所述IPv6扩展头SRH主要由Locator、Function、Argument组成,其中,Locator=位置信息可达性、Function=业务功能定义、Argument=增强;所述地址标识便于通信对象定位。The Segment List is when the current SR node in the SRv6 network performs IPv6 message transmission to the target SR node, all paths automatically assigned by the networking routing to automatically reach the target SR node, and it is stored in the SRv6 message protocol SID; The IPv6 extension header SRH is mainly composed of Locator, Function, and Argument, wherein, Locator=accessibility of location information, Function=definition of service function, Argument=enhancement; the address identification is convenient for locating communication objects.

作为本发明SRv6结合k近邻算法的报文传递分析方法的进一步说明,所述步骤S121 k近邻算法包括以下步骤:As a further illustration of the message delivery analysis method of SRv6 of the present invention in conjunction with k nearest neighbor algorithm, described step S121 k nearest neighbor algorithm comprises the following steps:

S1211、准备数据,将数据按维度依次排列;S1211. Prepare data, and arrange the data according to dimensions;

S1212、计算测试样本点到其他每个样本点的距离;S1212. Calculate the distance from the test sample point to each other sample point;

S1213、对每个距离进行排序,然后选择出距离最小的K个点;S1213. Sort each distance, and then select K points with the smallest distance;

S1214、对K个点所属的类别进行比较,根据少数服从多数的原则,将测试样本点归入在K个点中占比最高的那一类。S1214. Compare the categories to which the K points belong, and classify the test sample points into the category with the highest proportion among the K points according to the principle that the minority obeys the majority.

所述k近邻算法用于数据挖掘分类,所谓K最近邻,就是K个最近的邻居的意思,说的是每个样本都可以用它最接近的K个邻近值来代表,近邻算法就是将数据集合中每一个记录进行分类的方法。The k-nearest neighbor algorithm is used for data mining and classification. The so-called K-nearest neighbors means the K nearest neighbors. It means that each sample can be represented by its closest K neighbors. The nearest-neighbor algorithm is to combine data The method by which each record in the collection is classified.

作为本发明SRv6结合k近邻算法的报文传递分析方法的进一步说明,所述k近邻算法模型公式为:As a further description of the message delivery analysis method of SRv6 combined with the k-nearest neighbor algorithm of the present invention, the k-nearest neighbor algorithm model formula is:

Figure BDA0003910087470000031
Figure BDA0003910087470000031

式中:x1 x2 ... xn为样本X的n维数据;y1 y2 ... yn为样本Y的n维数据;X为时间,Y为网络延迟毫秒(ms);d(x,y)为样本X,Y的距离,在本发明中为当前网络节点24小时延迟毫秒<=50的关联节点。In the formula: x 1 x 2 ... x n is the n-dimensional data of sample X; y 1 y 2 ... y n is the n-dimensional data of sample Y; X is time, Y is the network delay in milliseconds (ms); d(x, y) is the distance between samples X and Y, and in the present invention is an associated node whose 24-hour delay of the current network node is <= 50 milliseconds.

作为本发明SRv6结合k近邻算法的报文传递分析方法的进一步说明,所述预警模型采用马尔可夫链构建,公式为:As a further description of the message delivery analysis method of SRv6 combined with the k-nearest neighbor algorithm of the present invention, the early warning model is constructed using a Markov chain, and the formula is:

X(k+1)=X(k)×PX(k+1)=X(k)×P

式中:X(k)表示趋势分析与预测对象在t=k时刻的状态向量,P表示一步转移概率矩阵,X(k+1)表示趋势分析与预测对象在t=k+1时刻的状态向量。In the formula: X(k) represents the state vector of the trend analysis and prediction object at the time t=k, P represents the one-step transition probability matrix, and X(k+1) represents the state of the trend analysis and prediction object at the time t=k+1 vector.

作为本发明SRv6结合k近邻算法的报文传递分析方法的进一步说明,所述步骤S13故障率及告警概率的计算方法为加权平均。所述加权平均用于把原始数据按照合理的比例来计算。As a further description of the message delivery analysis method of SRv6 combined with the k-nearest neighbor algorithm of the present invention, the calculation method of the failure rate and alarm probability in step S13 is a weighted average. The weighted average is used to calculate the original data in a reasonable proportion.

本发明具有以下有益效果:The present invention has the following beneficial effects:

当SRv6网络中当IPv6节点入网后,本发明应用k近邻算法获取所有可能做为第一跳的网络节点中故障节点的概率,从而筛选出健康的网络节点,然后采用马尔可夫链以历史流量告警数据为分析依据,分析每个Sid网络节点发生故障的概率,并分配概率值,通过增加AI故障预判及路径智能优选,为超大型组网内复杂业务报文转发提供了新得解决方案,并减小了报文转发的资源消耗,同时提升传输数据准确性及灵活配置。When the IPv6 node in the SRv6 network is connected to the network, the present invention uses the k-nearest neighbor algorithm to obtain the probability of faulty nodes in all network nodes that may be the first hop, thereby screening out healthy network nodes, and then uses the Markov chain The alarm data is used as the analysis basis to analyze the failure probability of each Sid network node and assign a probability value. By adding AI fault prediction and intelligent path optimization, it provides a new solution for complex business message forwarding in a super-large network , and reduce the resource consumption of message forwarding, while improving the accuracy of transmitted data and flexible configuration.

附图说明Description of drawings

图1为本发明SRv6结合k近邻算法的报文传递分析方法的整体方案流程图。FIG. 1 is a flow chart of the overall solution of the message delivery analysis method of SRv6 combined with the k-nearest neighbor algorithm of the present invention.

图2为图1中初始分配地址标识生成模块流程图。FIG. 2 is a flow chart of the initial allocation address identifier generating module in FIG. 1 .

图3为图1中构建k近邻算法模型、预警模型并生成智能分配标识模块流程图。Fig. 3 is a flow chart of the module of constructing the k-nearest neighbor algorithm model, the early warning model and generating the intelligent distribution identification in Fig. 1 .

图4为SRv6协议结构图。Figure 4 is a structural diagram of the SRv6 protocol.

图5为k近邻算法流程图。Fig. 5 is a flowchart of the k-nearest neighbor algorithm.

图6为k近邻算法模型原理示意图。Fig. 6 is a schematic diagram of the principle of the k-nearest neighbor algorithm model.

图7为本发明SRv6结合k近邻算法的报文传递分析方法整体框架图。FIG. 7 is an overall framework diagram of the message delivery analysis method of SRv6 combined with the k-nearest neighbor algorithm of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with accompanying drawing.

一种SRv6结合k近邻算法的报文传递分析方法,如图1所示,包括以下步骤:A message delivery analysis method combining SRv6 with the k-nearest neighbor algorithm, as shown in Figure 1, comprising the following steps:

S11、Srv6网络节点初始分配地址标识生成模块;S11, Srv6 network node initial allocation address identifier generation module;

如图2所示,具体包括以下步骤:As shown in Figure 2, it specifically includes the following steps:

S111、获取当前SR节点到目标SR节点的所有路径Segment List;SRv6网络中当前SR节点向目标SR节点进行IPv6报文传输时,组网路由会自动分配一个自动到达目标SR节点的所有路径,简称Segment List,它存储在SRv6报文协议SID里;S111. Obtain the Segment List of all paths from the current SR node to the target SR node; when the current SR node in the SRv6 network transmits IPv6 packets to the target SR node, the network routing will automatically assign all the paths to the target SR node, referred to as Segment List, which is stored in the SRv6 message protocol SID;

S112、抽取Segment List所有的SID,从下到上串连到一起,中间用###号间隔,生成初始地址标识;S112, extract all the SIDs of the Segment List, connect them in series from bottom to top, and use ### as an interval in the middle to generate an initial address identifier;

S113、在当前SR节点向下一跳SR节点传输之前,将初始地址标识放入IPv6扩展头SRH部分的Argument里。S113. Before the current SR node transmits to the next-hop SR node, put the initial address identifier into the Argument of the SRH part of the IPv6 extension header.

S12、构建k近邻算法模型、预警模型并生成智能分配标识模块;S12. Construct a k-nearest neighbor algorithm model, an early warning model and generate an intelligent allocation identification module;

如图3所示,具体包括以下步骤:As shown in Figure 3, it specifically includes the following steps:

S121、通过k近邻算法模型得到发起节点关联的所有下一跳SR节点的故障率,再通过预警模型对所有下一跳SR节点进行告警概率预测;S121. Obtain the failure rate of all next-hop SR nodes associated with the initiating node through the k-nearest neighbor algorithm model, and then predict the alarm probability of all the next-hop SR nodes through the early warning model;

S122、通过对故障率及告警概率进行计算,判定最优下一跳SR节点,直到将到达目的SR节点的每一跳的最优SR节点获取到并串连成最优地址标识;所述故障率及告警概率的计算方法为加权平均;S122. By calculating the failure rate and the alarm probability, determine the optimal next-hop SR node until the optimal SR node of each hop to the destination SR node is obtained and connected in series to form an optimal address identifier; The calculation method of rate and alarm probability is weighted average;

S123、如果最优地址标识每一跳SR节点优于初始地址标识每一跳SR节点,则更新IPv6扩展头SRH部分的Argument初始地址标识。S123. If the optimal address identifies each hop of the SR node is better than the initial address identifies each hop of the SR node, update the Argument initial address identification of the SRH part of the IPv6 extension header.

所述SRv6协议结构如图4所示,在IPv6路由扩展头新增SRH(Segment RoutingHeader)扩展头,该扩展头指定一个IPv6的显式路径,存储IPv6的Segment List信息,Segment List即对段和网络节点进行有序排列得到的一条转发路径;SRv6的可编程能力来源于对SRv6 SID128bit的运用,SRv6 Segment定义了SRv6网络编程中的网络指令,指示要去哪,怎么去,标识SRv6 Segment的ID被称为SRv6 SID,SRv6 SID是一个128bit的值,为IPv6地址形式,由Locator、Function和Arguments三部分组成;SRv6 Segment结构Locator:具有定位功能,提供IPv6的路由能力,报文通过该字段实现寻址转发,此外,Locator对应的路由也是可聚合的;Function:用来表达该设备指令要执行的转发动作,不同的转发行为由不同的Function来表达;Arguments:可选字段,是对Function的补充,是指令在执行时对应的参数,这些参数可能包含流、服务或任何其他相关的信息;SRv6的每个Segment是128bit,可以灵活分为多段,每段功能和长度可以自定义,由此具备灵活编程能力,即业务可编辑;SRv6通过以上编程空间,具备了更强大的网络编程能力,可以更好地满足不同的网络路径需求,和SDN技术完美融合,实现网络与应用的互动,使能业务驱动的可编程网络。Described SRv6 protocol structure as shown in Figure 4, adds SRH (Segment Routing Header) extension header in IPv6 routing extension header, and this extension header designates the explicit path of an IPv6, stores the Segment List information of IPv6, and Segment List is to segment and A forwarding path obtained by orderly arrangement of network nodes; the programmability of SRv6 comes from the use of SRv6 SID128bit, SRv6 Segment defines the network instructions in SRv6 network programming, indicates where to go, how to go, and identifies the ID of SRv6 Segment Known as SRv6 SID, SRv6 SID is a 128-bit value in the form of an IPv6 address, consisting of three parts: Locator, Function, and Arguments; SRv6 Segment structure Locator: has a positioning function and provides IPv6 routing capabilities, and packets are implemented through this field Addressing and forwarding. In addition, the route corresponding to the Locator can also be aggregated; Function: used to express the forwarding action to be executed by the device instruction, and different forwarding behaviors are expressed by different Functions; Arguments: optional field, which is for the Function Supplement is the parameter corresponding to the instruction when it is executed. These parameters may contain streams, services or any other related information; each segment of SRv6 is 128bit, which can be flexibly divided into multiple segments, and the function and length of each segment can be customized. It has flexible programming capability, that is, the business can be edited; SRv6 has more powerful network programming capability through the above programming space, which can better meet the needs of different network paths, and perfectly integrates with SDN technology to realize the interaction between the network and applications. A programmable network that can drive business.

SR技术为数据平面设计了两种实现方式,一种是复用MPLS数据平面的SR-MPLS,另一种是SRv6;SRv6使用IPv6数据平面,基于IPv6路由扩展头进行扩展,这部分扩展没有破坏标准的IPv6报头,而且,只有SRv6节点需要针对扩展头进行额外的处理,对于其他普通IPv6节点没有任何影响,这让SRv6可与现有IPv6网络无缝兼容,更让转发层面达到纯IPv6的极简转发;SR-MPLS使用4字节标签标识路径信息,MPLS标签仅能标识标签值、TTL、标签栈底三个信息,无扩展信息能力。与SR MPLS的Segment不同,SRv6的Segment的ID被称为SRv6SID,是一个128bit的值,而且分成了三部分:SR technology designs two implementations for the data plane, one is SR-MPLS that multiplexes the MPLS data plane, and the other is SRv6; SRv6 uses the IPv6 data plane and is extended based on the IPv6 routing extension header, and this part of the expansion is not damaged Standard IPv6 header, and only SRv6 nodes need to perform additional processing for the extension header, which has no impact on other common IPv6 nodes, which makes SRv6 seamlessly compatible with the existing IPv6 network, and makes the forwarding level reach the extreme of pure IPv6 Simple forwarding; SR-MPLS uses 4-byte labels to identify path information. MPLS labels can only identify three pieces of information: label value, TTL, and label stack bottom, and have no extended information capability. Unlike the Segment of SR MPLS, the Segment ID of SRv6 is called SRv6SID, which is a 128-bit value and is divided into three parts:

Locator(位置标识):网络中分配给一个网络节点的标识,可以用于路由和转发数据包。Locator有两个重要的属性,可路由和聚合。在SRv6 SID中Locator是一个可变长的部分,用于适配不同规模的网络。Locator (location identifier): An identifier assigned to a network node in the network, which can be used to route and forward data packets. Locator has two important properties, routable and aggregated. In the SRv6 SID, the Locator is a variable-length part, which is used to adapt to networks of different sizes.

Function(功能):设备分配给本地转发指令的一个ID值,该值可用于表达需要设备执行的转发动作,相当于计算机指令的操作码。在SRv6网络编程中,不同的转发行为由不同的功能ID来表达。一定程度上功能ID和MPLS标签类似,用于标识VPN转发实例等。Function: An ID value assigned by the device to the local forwarding command, which can be used to express the forwarding action that the device needs to perform, which is equivalent to the operation code of the computer command. In SRv6 network programming, different forwarding behaviors are expressed by different function IDs. To a certain extent, the function ID is similar to the MPLS label, and is used to identify the VPN forwarding instance and so on.

Args(变量):转发指令在执行的时候所需要的参数,这些参数可能包含流,服务或任何其他相关的可变信息。Args (variable): The parameters required by the forwarding instruction during execution, which may contain streams, services or any other related variable information.

总之,SRv6同时具有路由和MPLS两种转发属性,具备TE流量工程能力、扩展性能力、兼容IPv6,也便于未来固移融合,实现IP转发技术统一。In short, SRv6 has both routing and MPLS forwarding attributes. It has TE traffic engineering capabilities, scalability capabilities, and is compatible with IPv6. It is also convenient for future fixed-mobile convergence and unifies IP forwarding technologies.

进一步,如图5所示,步骤S121 k近邻算法包括以下步骤:Further, as shown in Figure 5, step S121 k nearest neighbor algorithm comprises the following steps:

S1211、准备数据,将数据按维度依次排列;S1211. Prepare data, and arrange the data according to dimensions;

S1212、计算测试样本点到其他每个样本点的距离;S1212. Calculate the distance from the test sample point to each other sample point;

S1213、对每个距离进行排序,然后选择出距离最小的K个点;S1213. Sort each distance, and then select K points with the smallest distance;

S1214、对K个点所属的类别进行比较,根据少数服从多数的原则,将测试样本点归入在K个点中占比最高的那一类。S1214. Compare the categories to which the K points belong, and classify the test sample points into the category with the highest proportion among the K points according to the principle that the minority obeys the majority.

所述k近邻算法的工作原理为:存在一个样本数据集和数据标签,知道样本和标签的对应关系;输入没有标签的数据,将新数据的每个特征与样本集中数据对应的特征进行比较;提取样本集中特征最相似数据的分类标签,只选取前k个最相似的数据,一般k是小于20。The working principle of the k-nearest neighbor algorithm is: there is a sample data set and data labels, and the corresponding relationship between samples and labels is known; data without labels is input, and each feature of the new data is compared with the corresponding features of the data in the sample set; Extract the classification labels of the most similar data in the sample set, and only select the top k most similar data, generally k is less than 20.

进一步,所述k近邻算法模型公式为:Further, the k-nearest neighbor algorithm model formula is:

Figure BDA0003910087470000061
Figure BDA0003910087470000061

式中:x1 x2 ... xn为样本X的n维数据;y1 y2 ... yn为样本Y的n维数据;X为时间,Y为网络延迟毫秒(ms);d(x,y)为样本X,Y的距离,在本发明中为当前网络节点24小时延迟毫秒<=50的关联节点。。In the formula: x 1 x 2 ... x n is the n-dimensional data of sample X; y 1 y 2 ... y n is the n-dimensional data of sample Y; X is time, Y is the network delay in milliseconds (ms); d(x, y) is the distance between samples X and Y, and in the present invention is an associated node whose 24-hour delay of the current network node is <= 50 milliseconds. .

k近邻算法模型原理示意如图6所示。The schematic diagram of the k-nearest neighbor algorithm model is shown in Figure 6.

所述故障率的计算以下述例子说明:The calculation of the failure rate is illustrated with the following example:

当前SID节点通过日志分析得到与当前SID节点关联10个网络节点数据计算后,通过10个节点的告警状态(0=无告警,1=有告警)确定告警状态。从而完成对当前样本的故障预测。After the current SID node obtains the data calculation of 10 network nodes associated with the current SID node through log analysis, the alarm status is determined by the alarm status of the 10 nodes (0=no alarm, 1=alarm). In this way, the fault prediction of the current sample is completed.

模型运算结果:当前网络节点24小时内延迟毫秒<=50的关联节点告警状态如果10个有3个发生过告警,则当前节点网络品质故障率30%。Model calculation results: If the current network node has an alarm status of associated nodes with a delay of milliseconds <= 50 within 24 hours, if 3 out of 10 have alarmed, the network quality failure rate of the current node is 30%.

进一步,所述预警模型采用马尔可夫链构建,公式为:Further, the early warning model is constructed using a Markov chain, and the formula is:

X(k+1)=X(k)×PX(k+1)=X(k)×P

式中:X(k)表示趋势分析与预测对象在t=k时刻的状态向量,P表示一步转移概率矩阵,X(k+1)表示趋势分析与预测对象在t=k+1时刻的状态向量。In the formula: X(k) represents the state vector of the trend analysis and prediction object at the time t=k, P represents the one-step transition probability matrix, and X(k+1) represents the state of the trend analysis and prediction object at the time t=k+1 vector.

所述告警概率的计算以下述例子说明:The calculation of the warning probability is illustrated by the following example:

当前节点转发历史概率【0.3、0.7】;The historical probability of forwarding by the current node [0.3, 0.7];

当前节点本次告警向正常转移概率【0.6、0.4】;Probability of current node transitioning from alarm to normal [0.6, 0.4];

当前节点本次正常向告警转移概率【0.3、0.7】;Probability of the current node transitioning from normal to alarm [0.3, 0.7];

通过模型公式计算得出:Calculated by the model formula:

本次优先转发概率=0.3x0.6+0.3x0.7=0.39;This priority forwarding probability = 0.3x0.6+0.3x0.7 = 0.39;

本次非优先转发概率=0.3x0.4+0.7x0.7=0.61。This non-priority forwarding probability=0.3x0.4+0.7x0.7=0.61.

由上述实施例可以得到本发明整体结构如图7所示,创造性的在SRv6网络报文转发中突出人工智能地位。首先,Srv6网络起始节点抽取Segment List所有的SID,从下到上串连到一起中间用###号间隔,生成初始地址标识。其次,通过k近邻算法模型得到发起节点关联的所有下一跳SR节点的故障率。再通过预警模型对所有下一跳SR节点进行告警概率预测。如果最优地址标识每一跳SR节点优于初始地址标识每一跳SR节点。则,更新IPv6扩展头SRH部分的Argument初始地址标识。该方法比现有Srv6报文转发机制增加了AI故障预判及路径智能优选,为超大型组网内复杂业务报文转发提供了新得解决方案,并减小了报文转发的资源消耗,同时提升传输数据准确性及灵活配置。From the above embodiments, the overall structure of the present invention can be obtained as shown in FIG. 7 , which creatively highlights the role of artificial intelligence in SRv6 network message forwarding. First, the starting node of the Srv6 network extracts all the SIDs of the Segment List, and connects them in series from bottom to top with ### in the middle to generate an initial address identifier. Secondly, the failure rate of all next-hop SR nodes that initiate node associations is obtained through the k-nearest neighbor algorithm model. Then use the early warning model to predict the alarm probability of all next-hop SR nodes. If the optimal address identifies each hop of SR nodes is better than the initial address identifies each hop of SR nodes. Then, update the initial address identifier of Argument in the SRH part of the IPv6 extension header. Compared with the existing Srv6 message forwarding mechanism, this method adds AI fault prediction and intelligent path selection, provides a new solution for complex service message forwarding in a super-large network, and reduces the resource consumption of message forwarding. At the same time, the accuracy of transmission data and flexible configuration are improved.

以上实施例仅为本发明的示例性实施例,不用于限制本发明,本发明的保护范围由权利要求书限定。本领域人员可以在本发明的实质和保护范围内,对本发明做出各种修改或等同替换,这种修改或等同替换也应视为落在本发明的保护范围内。The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the protection scope of the present invention is defined by the claims. Those skilled in the art can make various modifications or equivalent replacements to the present invention within the spirit and protection scope of the present invention, and such modifications or equivalent replacements should also be deemed to fall within the protection scope of the present invention.

Claims (6)

1.一种SRv6结合k近邻算法的报文传递分析方法,其特征在于包括以下步骤:1. a kind of SRv6 combines the message delivery analysis method of k nearest neighbor algorithm, it is characterized in that comprising the following steps: S11、Srv6网络节点初始分配地址标识生成模块;S11, Srv6 network node initial allocation address identifier generation module; S12、构建k近邻算法模型、预警模型并生成智能分配标识模块;S12. Construct a k-nearest neighbor algorithm model, an early warning model and generate an intelligent allocation identification module; 所述步骤S12包括以下步骤:Described step S12 comprises the following steps: S121、通过k近邻算法模型得到发起节点关联的所有下一跳SR节点的故障率,再通过预警模型对所有下一跳SR节点进行告警概率预测;S121. Obtain the failure rate of all next-hop SR nodes associated with the initiating node through the k-nearest neighbor algorithm model, and then predict the alarm probability of all the next-hop SR nodes through the early warning model; S122、通过对故障率及告警概率进行计算,判定最优下一跳SR节点,直到将到达目的SR节点的每一跳的最优SR节点获取到并串连成最优地址标识;S122. Determine the optimal next-hop SR node by calculating the failure rate and alarm probability, until the optimal SR node for each hop to the destination SR node is obtained and connected in series to form an optimal address identifier; S123、如果最优地址标识每一跳SR节点优于初始地址标识每一跳SR节点,则更新IPv6扩展头SRH部分的Argument初始地址标识。S123. If the optimal address identifies each hop of the SR node is better than the initial address identifies each hop of the SR node, update the Argument initial address identification of the SRH part of the IPv6 extension header. 2.根据权利要求1所述的SRv6结合k近邻算法的报文传递分析方法,其特征在于:所述步骤S11包括以下步骤:2. SRv6 according to claim 1 combines the message delivery analysis method of k nearest neighbor algorithm, it is characterized in that: described step S11 comprises the following steps: S111、获取当前SR节点到目标SR节点的所有路径Segment List;S111. Obtain all path Segment Lists from the current SR node to the target SR node; S112、抽取Segment List所有的SID,从下到上串连到一起,中间用###号间隔,生成初始地址标识;S112, extract all the SIDs of the Segment List, connect them in series from bottom to top, and use ### as an interval in the middle to generate an initial address identifier; S113、在当前SR节点向下一跳SR节点传输之前,将初始地址标识放入IPv6扩展头SRH部分的Argument里。S113. Before the current SR node transmits to the next-hop SR node, put the initial address identifier into the Argument of the SRH part of the IPv6 extension header. 3.根据权利要求1所述的SRv6结合k近邻算法的报文传递分析方法,其特征在于:所述步骤S121 k近邻算法包括以下步骤:3. SRv6 according to claim 1 combines the message delivery analysis method of k nearest neighbor algorithm, it is characterized in that: described step S121 k nearest neighbor algorithm comprises the following steps: S1211、准备数据,将数据按维度依次排列;S1211. Prepare data, and arrange the data according to dimensions; S1212、计算测试样本点到其他每个样本点的距离;S1212. Calculate the distance from the test sample point to each other sample point; S1213、对每个距离进行排序,然后选择出距离最小的K个点;S1213. Sort each distance, and then select K points with the smallest distance; S1214、对K个点所属的类别进行比较,根据少数服从多数的原则,将测试样本点归入在K个点中占比最高的那一类。S1214. Compare the categories to which the K points belong, and classify the test sample points into the category with the highest proportion among the K points according to the principle that the minority obeys the majority. 4.根据权利要求3所述的SRv6结合k近邻算法的报文传递分析方法,其特征在于:所述k近邻算法模型公式为:4. SRv6 according to claim 3 combines the message delivery analysis method of k nearest neighbor algorithm, it is characterized in that: described k nearest neighbor algorithm model formula is:
Figure FDA0003910087460000011
Figure FDA0003910087460000011
式中:x1 x2 ... xn为样本X的n维数据;y1 y2 ... yn为样本Y的n维数据;X为时间,Y为网络延迟毫秒(ms);d(x,y)为样本X,Y的距离,在本发明中为当前网络节点24小时延迟毫秒<=50的关联节点。In the formula: x 1 x 2 ... x n is the n-dimensional data of sample X; y 1 y 2 ... y n is the n-dimensional data of sample Y; X is time, Y is the network delay in milliseconds (ms); d(x, y) is the distance between samples X and Y, and in the present invention is an associated node whose 24-hour delay of the current network node is <= 50 milliseconds.
5.根据权利要求4所述的SRv6结合k近邻算法的报文传递分析方法,其特征在于:所述预警模型采用马尔可夫链构建,公式为:5. SRv6 according to claim 4 combines the message transmission analysis method of k nearest neighbor algorithm, it is characterized in that: described early warning model adopts Markov chain to construct, and formula is: X(k+1)=X(k)×PX(k+1)=X(k)×P 式中:X(k)表示趋势分析与预测对象在t=k时刻的状态向量,P表示一步转移概率矩阵,X(k+1)表示趋势分析与预测对象在t=k+1时刻的状态向量。In the formula: X(k) represents the state vector of the trend analysis and prediction object at the time t=k, P represents the one-step transition probability matrix, and X(k+1) represents the state of the trend analysis and prediction object at the time t=k+1 vector. 6.根据权利要求1所述的SRv6结合k近邻算法的报文传递分析方法,其特征在于:所述步骤S122故障率及告警概率的计算方法为加权平均。6. The message delivery analysis method of SRv6 combined with k-nearest neighbor algorithm according to claim 1, characterized in that: the calculation method of the failure rate and alarm probability in the step S122 is weighted average.
CN202211320372.3A 2022-10-26 2022-10-26 Message transmission analysis method combining SRv6 with k nearest neighbor algorithm Pending CN115914071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211320372.3A CN115914071A (en) 2022-10-26 2022-10-26 Message transmission analysis method combining SRv6 with k nearest neighbor algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211320372.3A CN115914071A (en) 2022-10-26 2022-10-26 Message transmission analysis method combining SRv6 with k nearest neighbor algorithm

Publications (1)

Publication Number Publication Date
CN115914071A true CN115914071A (en) 2023-04-04

Family

ID=86475227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211320372.3A Pending CN115914071A (en) 2022-10-26 2022-10-26 Message transmission analysis method combining SRv6 with k nearest neighbor algorithm

Country Status (1)

Country Link
CN (1) CN115914071A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118181A (en) * 2020-08-18 2020-12-22 新华三信息安全技术有限公司 Traffic scheduling method and device
CN114598614A (en) * 2020-11-20 2022-06-07 华为技术有限公司 Path prediction method and related device
CN114978930A (en) * 2022-05-31 2022-08-30 中电信数智科技有限公司 SRv 6-based intelligent network and equipment fault prediction method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118181A (en) * 2020-08-18 2020-12-22 新华三信息安全技术有限公司 Traffic scheduling method and device
CN114598614A (en) * 2020-11-20 2022-06-07 华为技术有限公司 Path prediction method and related device
CN114978930A (en) * 2022-05-31 2022-08-30 中电信数智科技有限公司 SRv 6-based intelligent network and equipment fault prediction method and system

Similar Documents

Publication Publication Date Title
CN106100999B (en) Image network flow control methods in a kind of virtualized network environment
Shu et al. Traffic engineering in software-defined networking: Measurement and management
RU2734895C2 (en) Time-sensitive program-determined network
US10389643B1 (en) Reflected packets
Koldehofe et al. The power of software-defined networking: line-rate content-based routing using OpenFlow
CN107925613A (en) It is used for the methods, devices and systems to E-Packet in business function chain SFC
CN110198234B (en) Method for jointly deploying functions of virtual switch and virtual network in software defined network
CN104158753A (en) Dynamic flow dispatch method and system based on software definition network
CN105024985A (en) A message processing method and device
US20180069780A1 (en) Network routing using dynamic virtual paths in an overlay network
CN110365553B (en) A method and system for monitoring IPv6 network traffic based on SDN
US9385939B2 (en) Method and a controller system for configuring a software-defined network
CN108092803A (en) The method that network element level parallelization service function is realized in network function virtualized environment
CN109150604A (en) A kind of powerline network system based on SDN and cross-domain dicing method
CN108289061A (en) Business chain method of combination based on SDN and business chain topological structure
Wang et al. A single-link failure recovery approach based on resource sharing and performance prediction in SDN
CN115442275A (en) Hybrid telemetry method and system based on hierarchical trusted streams
CN110071843A (en) A kind of Fault Locating Method and device based on flow path analysis
EP3461083B1 (en) Data processing method and device
CN115914071A (en) Message transmission analysis method combining SRv6 with k nearest neighbor algorithm
CN110365549A (en) A processing method and processing system for an SPTN network
EP2753033B1 (en) A method and a device for defining a look-up system for a network element of a software-defined network
CN103916321A (en) Method and device for defining implementation of look-up table for network element of software-defined network
CN113595809B (en) Flow monitoring method, related equipment and system
CN115277504A (en) Network traffic monitoring method, device and system

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