WO2023184218A1 - 通过bgp下发随流检测配置的方法及装置 - Google Patents

通过bgp下发随流检测配置的方法及装置 Download PDF

Info

Publication number
WO2023184218A1
WO2023184218A1 PCT/CN2022/084008 CN2022084008W WO2023184218A1 WO 2023184218 A1 WO2023184218 A1 WO 2023184218A1 CN 2022084008 W CN2022084008 W CN 2022084008W WO 2023184218 A1 WO2023184218 A1 WO 2023184218A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
flow
flow detection
bgp
policy
Prior art date
Application number
PCT/CN2022/084008
Other languages
English (en)
French (fr)
Inventor
叶金荣
邱元香
Original Assignee
新华三技术有限公司
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 新华三技术有限公司 filed Critical 新华三技术有限公司
Priority to CN202280000651.3A priority Critical patent/CN117157952A/zh
Priority to PCT/CN2022/084008 priority patent/WO2023184218A1/zh
Publication of WO2023184218A1 publication Critical patent/WO2023184218A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Definitions

  • This application relates to network communication technology, and in particular to methods and devices for delivering flow detection configuration through Border Gateway Protocol (BGP: Border Gateway Protocol).
  • Border Gateway Protocol Border Gateway Protocol
  • the flow-following detection is performed using the normally forwarded service flow.
  • the on-flow detection option can be inserted into the normal forwarding service flow.
  • the forwarding device obtains the corresponding detection data based on the on-flow detection option and reports it to the analyzer.
  • the analyzer analyzes subtle anomalies in the network based on the detection data. , accurately detects performance information such as delay and packet loss of each business flow, making the service level agreement (SLA: Service Level Agreement) network quality visible in real time, and achieving rapid fault delineation and location.
  • SLA Service Level Agreement
  • Embodiments of the present application provide methods and devices for delivering flow-following detection configurations through BGP, so as to implement delivery of flow-following detection configurations through BGP.
  • the embodiment of this application provides a method for delivering flow detection configuration through BGP.
  • the method is applied to network devices.
  • the method includes:
  • the BGP UPDATE message at least carries the flow detection configuration parameters, and the flow detection configuration parameters at least include: the flow to be executed The service flow identifier of the detected service flow.
  • the embodiment of the present application also provides a device for delivering flow detection configuration through BGP.
  • the device is applied to network equipment.
  • the device includes:
  • the acquisition unit is used to obtain the first node in the segment routing SR policy
  • a delivery unit configured to deliver a BGP update UPDATE message to the first node through the BGP connection with the first node; the BGP UPDATE message at least carries flow-following detection configuration parameters, and the flow-following detection configuration parameters are at least Including: the service flow identifier of the service flow to be performed along with the flow detection.
  • the BGP UPDATE message in the BGP protocol is extended so that the extended BGP UPDATE message carries the flow detection configuration parameters and is dynamically delivered to the first node in the SR Policy. Node, this enables network devices to dynamically deliver flow detection configuration parameters based on BGP.
  • Figure 1 is a schematic diagram of the flow detection options provided by the embodiment of the present application.
  • Figure 2 is a method flow chart provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the IFIT Parameters Sub-TLV format provided by the embodiment of this application.
  • FIG. 4 is a schematic diagram of IFIT Parameters Sub-TLV provided by the embodiment of this application.
  • Figure 5 is a structural diagram of the device provided by the embodiment of the present application.
  • Figure 6 is a structural diagram of an electronic device provided by an embodiment of the present application.
  • flow detection is performed based on service flows.
  • the service packet when the first node of the service flow identifies the service packet that needs to be performed with the flow detection (the business packet that needs to be performed with the flow detection can be identified based on the predefined message characteristics), the service packet will be Insert the flow detection option (Option) into .
  • the flow detection option can be added to the destination options extension header (DOH: Destination Options Header) of IPv6 encapsulated in the service message.
  • DOH Destination Options Header
  • the flow-following detection option will carry parameters used to indicate the flow-following detection, which at least include the flow-following detection configuration parameters.
  • Figure 1 shows an example of the flow detection configuration parameters carried by the flow detection option.
  • the flow detection options shown in Figure 1 include at least the following parameters:
  • Option Type is used to represent the type of option.
  • the option type may occupy 8 bits.
  • Option Data Len is used to indicate the data length of the flow detection option.
  • the option data length may occupy 8 bits.
  • FlowMonID Business flow ID
  • the service flow identifier may occupy 20 bits.
  • D Flag Delay measurement dye flag which can occupy 1 bit.
  • D Flag is set to the first value such as 1, it is required to report timestamp information to the analyzer.
  • the measurement period (T) can occupy 2 bits. For example, if T takes a value of 00, it means 10 seconds (s), if it takes a value of 01, it means 30s, if it takes a value of 10, it means 60s, and if it takes a value of 11, it means 300s.
  • Extended data type (ExtData), which can occupy 6bits. For example, if the value of the extended data type is 000000, it means that it does not carry extended data. When the value of the extended data type is other values, the extension can be reserved for use.
  • Detection type which can occupy 2 bits, is used to indicate the detection type. For example, when the detection type value is 01, it indicates end-to-end detection, when the value is 10, it indicates hop-by-hop detection, etc.
  • the device node ID (NodeMonID) can occupy 20 bits and is used to represent the node ID of the first node.
  • F Flag which can occupy 1 bit. For example, when the value of the service flow direction identifier is a preset value such as 1, it indicates forward service flow.
  • Reserved field (Reserved), can occupy 11 bits.
  • the reported data indication bit can occupy 24 bits and is represented by a bitmap (bitmap). It is used to represent the data type that needs to be reported to the analyzer.
  • embodiments of the present application provide a method for dynamically configuring configuration parameters for flow detection.
  • dynamic configuration of flow detection configuration parameters can be implemented by extending the BGP protocol. It is described below:
  • the network device may be a device designated in the network for delivering flow detection configuration parameters, such as a controller, or one of the designated routers.
  • the process may include the following steps:
  • Step 201 Obtain the first node in the segment routing (SR: Segment Routing) policy.
  • the above-mentioned network device may be a device designated to deliver the SR Policy.
  • the SR Policy is identified by the following triplet:
  • Headend The node generated/implemented by SR Policy
  • Color is an arbitrary 32-bit value used to distinguish SR Policies
  • Endpoint The endpoint of the SR Policy, which can be an IPv4/IPv6 address.
  • this step 201 After obtaining the SR Policy (such as receiving an externally configured SR Policy, etc.), it is easy to determine the first node in the SR Policy based on the obtained SR Policy.
  • Step 202 Send a BGP update (UPDATE) message to the above-mentioned first node through the BGP connection with the above-mentioned first node.
  • the BGP UPDATE message at least carries the flow detection configuration parameters.
  • This embodiment extends the BGP UPDATE message in the BGP protocol so that the extended BGP UPDATE message carries flow detection configuration parameters.
  • SAFI Subsequent Address Family Identifier
  • NLRI Network Layer Reachability Information
  • IFIT In-situ Flow Information Telemetry
  • the SR Policy SAFI NLRI field carries the Tunnel Encaps Attribute whose Tunnel-Type is SR Policy Type (value is 15), and extends the above IFIT Parameters as one of the sub-TLVs of the Tunnel Encaps Attribute.
  • IFIT Parameters is used as a Tunnel Encaps Attribute sub-TLV, its specific location is not limited. For example, it can be in front of or behind all other Tunnel Encaps Attribute sub-TLVs. In this embodiment Not specifically limited.
  • IFIT Parameters is a Tunnel Encaps Attribute sub-TLV (IFIT Parameters Sub-TLV for short), and its format satisfies TLV, as shown in Figure 3.
  • Type represents the type of IFIT Parameters Sub-TLV, which may be defined by IANA.
  • the possible value is 6, which is not specifically limited in this embodiment.
  • Length indicates the length of IFIT Parameters Sub-TLV, for example, it can be 4 bits.
  • Value (Value) represents the flow detection configuration parameters carried by the IFIT Parameters Sub-TLV.
  • the flow-following detection configuration parameters may be set according to the actual flow-following detection to be performed, for example, may include at least: the service flow identifier of the service flow to be performed, etc., in this embodiment Not specifically limited.
  • the flow detection configuration parameters include the parameters shown in Table 1:
  • the above network device can dynamically deliver flow detection configuration parameters based on BGP.
  • the above-mentioned network device may detect that the SR Policy parameters of the SR Policy need to be delivered to the above-mentioned first node when sending the BGP UPDATE message to the first node. That is, when the network device detects that the SR Policy parameters need to be delivered to the above-mentioned first node, the network device can further deliver the above-mentioned BGP UPDATE report to the above-mentioned first node while delivering the SR Policy parameters to the above-mentioned first node. arts.
  • the network device may also carry the above-mentioned SR Policy parameter in the above-mentioned BGP UPDATE message and deliver it to the above-mentioned head node.
  • the head node after it receives the service packet as the ingress node, it recognizes based on the predefined characteristics that it needs to perform follow-up detection on the service packet.
  • a flow detection option similar to that shown in Figure 1 is inserted into the service packet, and target statistical data is collected based on the measurement type carried by the flow detection option and reported to the analyzer.
  • target statistical data can be collected based on the default measurement type and reported to the analyzer. For example, the target statistics reported by the first node are shown in Table 2:
  • the intermediate node (Transmit), after receiving the above service message, finds that the service message carries the flow detection option, collects the target statistical data based on the measurement type carried by the flow detection option and reports it to the analyzer, and continues to forward the business report. arts.
  • target statistical data can be collected based on the default measurement type and reported to the analyzer.
  • Table 3 the target statistics reported by the intermediate node are shown in Table 3:
  • the egress node after receiving the above service packet, finds that the service packet carries the flow detection option, collects the target statistical data based on the measurement type carried by the flow detection option and reports it to the analyzer, and then removes the business packet carry the flow detection option and continue to forward service packets.
  • target statistical data can be collected based on the default measurement type and reported to the analyzer.
  • the target statistics reported by the egress node are similar to Table 3.
  • Tx[i] represents the number of packets of the service flow sent in the i-th period reported by the ingress node
  • Rx[i] represents the number of packets of the service flow received in the i-th period reported by the outgoing node
  • PacketLoss[i] represents the i-th period.
  • Figure 5 is a device structure diagram provided by an embodiment of the present application.
  • the device is applied to network equipment, as shown in Figure 5.
  • the device may include:
  • the delivery unit is used to deliver the BGP UPDATE message to the first node through the BGP connection with the first node; the BGP UPDATE message at least carries the flow detection configuration parameters, and the flow detection configuration parameters at least include: to be executed The service flow identifier of the service flow detected along with the flow.
  • the delivery unit when the delivery unit detects that the SR Policy parameters of the SR Policy need to be delivered to the first node, it further delivers the SR Policy parameters to the first node through the BGP connection with the first node. BGP UPDATE message.
  • the BGP UPDATE message also carries the SR Policy parameter.
  • the BGP UPDATE message carries the SR Policy sub-address family identifier SAFI network layer reachability information NLRI field;
  • the flow detection configuration parameters are carried in the SR Policy SAFI NLRI field in the BGP UPDATE message.
  • the SR Policy SAFI NLRI field includes the Tunnel Encaps Attribute
  • the flow detection parameter is used as one of the sub-TLVs of the Tunnel Encaps Attribute.
  • the flow detection configuration parameters further include:
  • the node ID of the first node is the node ID of the first node
  • the flow detection type at least includes: end-to-end detection, hop-by-hop detection;
  • a data type indication bit used to indicate the data type of data detected along with the flow.
  • Figure 6 is a structural diagram of an electronic device provided by an embodiment of the present application.
  • the hardware structure may include: a processor and a machine-readable storage medium.
  • the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is configured to execute machine-executable instructions. instructions to implement the methods disclosed in the above examples of this application.
  • embodiments of the present application also provide a machine-readable storage medium.
  • Several computer instructions are stored on the machine-readable storage medium.
  • the present invention can be realized. Apply the methods disclosed in the examples above.
  • machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device, which can contain or store information, such as executable instructions, data, etc.
  • machine-readable storage media can be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage media, or a combination thereof.
  • a typical implementation device is a computer, which may be in the form of a personal computer, a laptop, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, or a game controller. desktop, tablet, wearable device, or a combination of any of these devices.
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • these computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means,
  • the instruction device implements the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

Landscapes

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

Abstract

本申请提供了通过BGP下发随流检测配置的方法及装置。本申请实施例中,通过扩展BGP协议中的BGP UPDATE报文,以使扩展后的BGP UPDATE报文携带随流检测配置参数并动态下发至SR Policy中的首节点,这实现了网络设备可基于BGP动态下发随流检测配置参数。

Description

通过BGP下发随流检测配置的方法及装置 技术领域
本申请涉及网络通信技术,特别涉及应用于通过边界网关协议(BGP:Border Gateway Protocol)下发随流检测配置的方法及装置。
背景技术
随流检测是利用正常转发的业务流进行的检测。具体实现时,可在正常转发的业务流中插入随流检测选项,由转发设备基于随流检测选项获得对应的检测数据并上报给分析器,由分析器基于检测数据分析出网络中细微的异常,精准检测每个业务流的时延、丢包等性能信息,使得服务等级协议(SLA:Service Level Agreement)网络质量实时可视,做到快速故障定界和定位。
发明内容
本申请实施例提供了通过BGP下发随流检测配置的方法及装置,以实现通过BGP下发随流检测配置。
本申请实施例提供了一种通过BGP下发随流检测配置的方法,该方法应用于网络设备,该方法包括:
获得分段路由SR策略Policy中的首节点;
通过与所述首节点之间的BGP连接向所述首节点下发BGP UPDATE报文;BGP UPDATE报文至少携带随流检测配置参数,所述随流检测配置参数至少包括:待被执行随流检测的业务流的业务流标识。
本申请实施例还提供了一种通过BGP下发随流检测配置的装置,该装置应用于网络设备,该装置包括:
获得单元,用于获得分段路由SR策略Policy中的首节点;
下发单元,用于通过与所述首节点之间的BGP连接向所述首节点下发BGP更新UPDATE报文;BGP UPDATE报文至少携带随流检测配置参数,所述随流检测配置参数至少包括:待被执行随流检测的业务流的业务流标识。
由以上技术方案可以看出,本申请实施例中,通过扩展BGP协议中的BGP UPDATE报文,以使扩展后的BGP UPDATE报文携带随流检测配置参数并动态下发至SR Policy中的首节点,这实现了网络设备可基于BGP动态下发随流检测配置参数。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1为本申请实施例提供的随流检测选项示意图;
图2为本申请实施例提供的方法流程图;
图3为本申请实施例提供的IFIT Parameters Sub-TLV格式示意图;
图4为本申请实施例提供的IFIT Parameters Sub-TLV示意图;
图5为本申请实施例提供的装置结构意图;
图6为本申请实施例提供的电子设备结构图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是本申请的一些方面相一致的装置和方法的例子。
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
如背景技术描述的,随流检测是基于业务流进行的。在具体实现时,当业务流的首节点识别出需执行随流检测的业务报文(可根据预先定义的报文特征识别需执行随流检测的业务报文),则会在该业务报文中插入随流检测选项(Option)。可选地,在本实施例中,可在业务报文封装的IPv6的目的选项扩展头(DOH:Destination Options Header)中增加随流检测选项。
这里,随流检测选项会携带用于指示随流检测的参数,该参数至少包括随流检测配 置参数。图1举例示出了随流检测选项携带的随流检测配置参数。
如图1所示的随流检测选项中至少包括以下参数:
选项类型(Option Type),用于表示选项的类型。可选地,在本实施例中,选项类型可占用8bits。
选项数据长度(Option Data Len),用于表示随流检测选项的数据长度。可选地,在本实施例中,选项数据长度可占用8bits。
业务流标识(FlowMonID),用于表示业务流标识。可选地,在本实施例中,业务流标识可占用20bits。
丢包测量染色标识(L Flag),可占用1bit。
时延测量染色标识(D Flag),可占用1bit。当D Flag置为第一值比如1时,要求向分析器上报时间戳信息。
测量周期(T),可占用2bits。比如,T取值00,则表示10秒(s),取值01,则表示30s,取值10,则表示60s,取值11,则表示300s。
扩展数据类型(ExtData),可占用6bits。比如,扩展数据类型取值为000000,则表示不携带扩展数据,当扩展数据类型取值为其他值,可预留扩展使用。
检测类型(T),可占用2bits,用于表示检测类型,比如,当检测类型取值为01,表示端到端检测,当取值为10,表示逐跳检测等。
设备节点标识(NodeMonID),可占用20bits,用于表示首节点的节点标识。
业务流方向标识(F Flag),可占用1bit。比如,当业务流方向标识取值为预设值比如1时,表示正向业务流。
保留字段(Reserved),可占用11bits。
上报数据指示位(Trace Type),可占用24bits,通过位图(bitmap)表示,用于表示需要向分析器上报的数据类型。
以上举例描述了随流检测选项。
但是,在应用中,上述随流检测选项携带的随流检测配置参数都是通过命令行配置或者Netconf静态配置。而不管是命令行配置还是Netconf静态配置,都很难适应动态变化的网络。
基于此,本申请实施例提供了一种动态配置随流检测配置参数的方法。可选地,在本实施例中,可通过扩展BGP协议实现动态配置随流检测配置参数。下面进行描述:
参见图2,图2为本申请实施例提供的方法流程图。该方法应用于网络设备。这里,该网络设备可为网络中被指定的用于下发随流检测配置参数的设备,比如可为控制器,或者指定的其中一个路由器。
如图2所示,该流程可包括以下步骤:
步骤201,获得分段路由(SR:Segment Routing)策略(Policy)中的首节点。
可选地,在本实施例中,上述网络设备可为被指定下发SR Policy的设备。
在一个例子中,SR Policy由以下三元组标识:
首节点(Headend):SR Policy生成/实现的节点;
颜色(Color):是任意的32位数值,用于区分SR Policy;
尾节点(Endpoint):SR Policy的终结点,可为一个IPv4/IPv6地址。
基于如上描述的SR Policy的三元组,则本步骤201中,当获得SR Policy(比如接收到外部配置的SR Policy等)后,很容易基于获得的SR Policy确定该SR Policy中的首节点。
步骤202,通过与上述首节点之间的BGP连接向上述首节点下发BGP更新(UPDATE)报文,BGP UPDATE报文至少携带随流检测配置参数。
本实施例通过扩展BGP协议中的BGP UPDATE报文,以使扩展后的BGP UPDATE报文携带随流检测配置参数。在具体实现时,可借助BGP UPDATE报文中新增加的SR Policy子地址家庭标识符(SAFI:Subsequent Address Family Identifier)网络层可达信息(NLRI:Network Layer Reachability Information)字段来扩展携带上述随流检测(IFIT:In-situ Flow Information Telemetry)配置参数(Parameters)。比如,SR Policy SAFI NLRI字段携带Tunnel-Type为SR Policy Type(取值为15)的隧道封装属性(Tunnel Encaps Attribute),扩展上述IFIT Parameters作为Tunnel Encaps Attribute的其中一个sub-TLV。
下文在SR Policy SAFI NLRI字段举例示出IFIT Parameters:
SR Policy SAFI NLRI字段的编码结构如下:
SR Policy SAFI NLRI:<Distinguisher,Policy-Color,Endpoint>
Figure PCTCN2022084008-appb-000001
需要说明的是,在本实施例中,IFIT Parameters虽然作为一个Tunnel Encaps Attribute sub-TLV,但其具体位置可不限定,比如可在其它所有Tunnel Encaps Attribute sub-TLV的前面、后面等,本实施例并不具体限定。
如上描述,IFIT Parameters作为一个Tunnel Encaps Attribute sub-TLV(简称IFIT Parameters Sub-TLV),其格式满足TLV,具体如图3所示。
在图3中,类型(Type),表示IFIT Parameters Sub-TLV的类型,其可待由IANA定义,比如可取值为6,本实施例并不具体限定。
长度(Length),表示IFIT Parameters Sub-TLV的长度,比如可为4bits。
值(Value),表示IFIT Parameters Sub-TLV携带的随流检测配置参数。
可选地,在本实施例中,随流检测配置参数可根据实际待执行的随流检测进行设置, 比如可至少包括:待被执行随流检测的业务流的业务流标识等,本实施例并不具体限定。
可选地,在本实施例中,假若随流检测配置参数包括表1所示的各参数:
Figure PCTCN2022084008-appb-000002
表1
可选地,上述IFIT Parameters Sub-TLV的编码结构可如图4所示。在图4中,R为保留字段。
最终,通过上述步骤202,即可实现了上述网络设备可基于BGP动态下发随流检测配置参数。
可选地,在本实施例中,为节省带宽资源,上述网络设备在向首节点下发BGP UPDATE报文的时机可为检测到需向上述首节点下发SR Policy的SR Policy参数。也即,当网络设备检测到需向上述首节点下发SR Policy的SR Policy参数时,网络设备可在向上述首节点下发SR Policy参数的同时,进一步向上述首节点下发上述BGP UPDATE报文。
可选地,在本实施例中,网络设备可将上述SR Policy参数也携带在上述BGP UPDATE报文中一起下发给上述首节点。
在本实施例中,当首节点基于上述BGP UPDATE报文获得随流检测配置参数后,其作为入节点在接收到业务报文时,根据预先定义的特征识别出需针对该业务报文执行随流检测,则在业务报文中插入类似图1所示的随流检测选项,基于随流检测选项携带的测量类型收集目标统计数据并上报给分析器。当然,假若随流检测选项未携带的测量类型,则可基于默认的测量类型收集目标统计数据且上报给分析器。比如,首节点上报的目标统计数据如表2所示:
Figure PCTCN2022084008-appb-000003
表2
中间节点(Transmit),接收到上述业务报文后,发现该业务报文携带随流检测选 项,则基于随流检测选项携带的测量类型收集目标统计数据并上报给分析器,并继续转发业务报文。当然,假若随流检测选项未携带的测量类型,则可基于默认的测量类型收集目标统计数据且上报给分析器。比如,中间节点上报的目标统计数据如表3所示:
Figure PCTCN2022084008-appb-000004
表3
出节点(Egress),接收到上述业务报文后,发现该业务报文携带随流检测选项,则基于随流检测选项携带的测量类型收集目标统计数据并上报给分析器,之后去掉业务报文携带的随流检测选项并继续转发业务报文。当然,假若随流检测选项未携带的测量类型,则可基于默认的测量类型收集目标统计数据且上报给分析器。出节点上报的目标统计数据类似表3。
分析器(Analyzer),负责收集入节点、中间节点、出节点上送的统计数据并完成数据的汇总和计算。比如,分析器根据入节点和出节点上报的统计数据,计算第i周期业务流的丢包数:PacketLoss[i]=Tx[i]–Rx[i]。其中,Tx[i]表示入节点上报的第i周期发送的业务流的包数,Rx[i]表示出节点上报的第i周期接收的业务流的包数,PacketLoss[i]表示第i周期内业务流的丢包数。再比如,分析器根据入节点和出节点上报的统计数据,计算第i周期的双向时延:Delay[i]=正向业务流单向时延+反向业务流单向时延。
以上对本申请实施例提供的方法进行了描述。下面对本申请实施例提供的装置进行描述:
参见图5,图5为本申请实施例提供的装置结构图。该装置应用于网络设备,如图5所示,该装置可包括:
获得单元,用于获得SR Policy中的首节点;
下发单元,用于通过与首节点之间的BGP连接向首节点下发BGP UPDATE报文;BGP UPDATE报文至少携带随流检测配置参数,所述随流检测配置参数至少包括:待被执行随流检测的业务流的业务流标识。
可选地,在本实施例中,下发单元是在检测到需向所述首节点下发所述SR Policy的SR Policy参数时,进一步通过与首节点之间的BGP连接向首节点下发BGP UPDATE报文。
可选地,在本实施例中,所述BGP UPDATE报文还携带所述SR Policy参数。
可选地,本实施例中,所述BGP UPDATE报文携带SR Policy子地址家庭标识符SAFI网络层可达信息NLRI字段;
所述随流检测配置参数携带在所述BGP UPDATE报文中的SR Policy SAFI NLRI字段中。
可选地,本实施例中,所述SR Policy SAFI NLRI字段包含隧道封装属性Tunnel Encaps Attribute;
所述随流检测参数作为所述Tunnel Encaps Attribute的其中一个sub-TLV。
可选地,本实施例中,所述随流检测配置参数还包括:
首节点的节点标识;
和/或,随流检测周期;
和/或,随流检测类型,随流检测类型至少包括:端到端检测、逐跳检测;
和/或,数据类型指示位,用于指示随流检测的数据的数据类型。
本申请实施例还提供了图5所示装置的硬件结构。参见图6,图6为本申请实施例提供的电子设备结构图。如图6所示,该硬件结构可包括:处理器和机器可读存储介质,机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;所述处理器用于执 行机器可执行指令,以实现本申请上述示例公开的方法。
基于与上述方法同样的申请构思,本申请实施例还提供一种机器可读存储介质,所述机器可读存储介质上存储有若干计算机指令,所述计算机指令被处理器执行时,能够实现本申请上述示例公开的方法。
示例性的,上述机器可读存储介质可以是任何电子、磁性、光学或其它物理存储装置,可以包含或存储信息,如可执行指令、数据,等等。例如,机器可读存储介质可以是:RAM(Radom Access Memory,随机存取存储器)、易失存储器、非易失性存储器、闪存、存储驱动器(如硬盘驱动器)、固态硬盘、任何类型的存储盘(如光盘、dvd等),或者类似的存储介质,或者它们的组合。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可以由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其它可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其它可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
而且,这些计算机程序指令也可以存储在能引导计算机或其它可编程数据处理设 备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或者多个流程和/或方框图一个方框或者多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其它可编程数据处理设备上,使得在计算机或者其它可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其它可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (10)

  1. 一种通过BGP下发随流检测配置的方法,其特征在于,该方法应用于网络设备,该方法包括:
    获得分段路由SR策略Policy中的首节点;
    通过与所述首节点之间的BGP连接向所述首节点下发BGP更新UPDATE报文;所述BGP UPDATE报文至少携带随流检测配置参数,所述随流检测配置参数至少包括:待被执行随流检测的业务流的业务流标识。
  2. 根据权利要求1所述的方法,其特征在于,所述通过与首节点之间的BGP连接向首节点下发BGP更新UPDATE报文,是在检测到需向所述首节点下发所述SR Policy的SR Policy参数时执行的。
  3. 根据权利要求2所述的方法,其特征在于,所述BGP UPDATE报文还携带所述SR Policy参数。
  4. 根据权利要求1所述的方法,其特征在于,所述BGP UPDATE报文携带SR Policy子地址家庭标识符SAFI网络层可达信息NLRI字段;
    所述随流检测配置参数携带在所述BGP UPDATE报文中的SR Policy SAFI NLRI字段中。
  5. 根据权利要求4所述的方法,其特征在于,所述SR Policy SAFI NLRI字段包含隧道封装属性Tunnel Encaps Attribute;
    所述随流检测参数作为所述Tunnel Encaps Attribute的其中一个sub-TLV。
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述随流检测配置参数还包括:
    首节点的节点标识;
    和/或,随流检测周期;
    和/或,随流检测类型,随流检测类型至少包括:端到端检测、逐跳检测;
    和/或,数据类型指示位,用于指示随流检测的数据的数据类型。
  7. 一种通过BGP下发随流检测配置的装置,其特征在于,该装置应用于网络设备,该装置包括:
    获得单元,用于获得分段路由SR策略Policy中的首节点;
    下发单元,用于通过与所述首节点之间的BGP连接,向所述首节点下发BGP更新UPDATE报文;BGP UPDATE报文至少携带随流检测配置参数,所述随流检测配置参数至少包括:待被执行随流检测的业务流的业务流标识、所述首节点的节点标识。
  8. 根据权利要求7所述的装置,其特征在于,所述BGP UPDATE报文携带SR Policy子地址家庭标识符SAFI网络层可达信息NLRI字段;
    所述随流检测配置参数携带在所述BGP UPDATE报文中的SR Policy SAFI NLRI字段中。
  9. 根据权利要求8所述的装置,其特征在于,所述SR Policy SAFI NLRI字段包含隧道封装属性Tunnel Encaps Attribute;
    所述随流检测参数作为所述Tunnel Encaps Attribute的其中一个sub-TLV。
  10. 根据权利要求7至9任一所述的装置,其特征在于,所述随流检测配置参数还包括:
    首节点的节点标识;
    和/或,随流检测周期;
    和/或,随流检测类型,随流检测类型至少包括:端到端检测、逐跳检测;
    和/或,数据类型指示位,用于指示随流检测的数据的数据类型。
PCT/CN2022/084008 2022-03-30 2022-03-30 通过bgp下发随流检测配置的方法及装置 WO2023184218A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280000651.3A CN117157952A (zh) 2022-03-30 2022-03-30 通过bgp下发随流检测配置的方法及装置
PCT/CN2022/084008 WO2023184218A1 (zh) 2022-03-30 2022-03-30 通过bgp下发随流检测配置的方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/084008 WO2023184218A1 (zh) 2022-03-30 2022-03-30 通过bgp下发随流检测配置的方法及装置

Publications (1)

Publication Number Publication Date
WO2023184218A1 true WO2023184218A1 (zh) 2023-10-05

Family

ID=88198475

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/084008 WO2023184218A1 (zh) 2022-03-30 2022-03-30 通过bgp下发随流检测配置的方法及装置

Country Status (2)

Country Link
CN (1) CN117157952A (zh)
WO (1) WO2023184218A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804075A (zh) * 2019-11-14 2021-05-14 华为技术有限公司 发送报文、接收报文以进行oam的方法、装置及系统
US20210226879A1 (en) * 2020-01-16 2021-07-22 Cisco Technology, Inc. Diagnosing and resolving issues in a network using probe packets
CN113315645A (zh) * 2020-02-27 2021-08-27 华为技术有限公司 配置性能探测指示信息的方法及相关设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804075A (zh) * 2019-11-14 2021-05-14 华为技术有限公司 发送报文、接收报文以进行oam的方法、装置及系统
US20210226879A1 (en) * 2020-01-16 2021-07-22 Cisco Technology, Inc. Diagnosing and resolving issues in a network using probe packets
CN113315645A (zh) * 2020-02-27 2021-08-27 华为技术有限公司 配置性能探测指示信息的方法及相关设备

Also Published As

Publication number Publication date
CN117157952A (zh) 2023-12-01

Similar Documents

Publication Publication Date Title
US11533249B2 (en) Route processing method and apparatus, and data transmission method and apparatus
US10757231B2 (en) Providing network efficiencies in forwarding packets among provider networks and applying segment routing policies
EP3808040B1 (en) Apparatus and method to trace packets in a packet processing pipeline of a software defined networking switch
US10298538B2 (en) Address resolution
US10791053B2 (en) Service function chain SFC-based communication method, and apparatus
US20210243117A1 (en) In-situ operation, administration, and maintenance in segment routing with multiprotocol label switching networks
CA3178566A1 (en) Data transmission control method and apparatus
WO2022166691A1 (zh) 一种业务处理方法、装置、存储介质及电子装置
CA2777229C (en) Rsvp-te graceful restart under fast re-route conditions
US20220294722A1 (en) Transmission Quality Detection Method, Apparatus, and System, and Storage Medium
US9548930B1 (en) Method for improving link selection at the borders of SDN and traditional networks
US8929249B2 (en) System and method for virtual private local area network service to use the flow aware pseudowire
WO2022246837A1 (zh) 随流检测方法和电子设备
WO2022041916A1 (zh) 报文头的处理方法及装置、存储介质、电子装置
EP3593497B1 (en) Optimizing tunnel monitoring in sdn
US11895021B2 (en) Message sending and receiving method, apparatus, and system
WO2017000802A1 (zh) 一种业务故障定位方法及装置
WO2015196923A1 (zh) 一种发送信息的方法和网络装置
US20230086487A1 (en) Method for Determining Processing Capability, Node, and System
US8848716B2 (en) Termination of a pseudowires on multiple line cards
WO2023184218A1 (zh) 通过bgp下发随流检测配置的方法及装置
WO2022198560A1 (zh) 随流检测方法和电子设备
CN115037688A (zh) 一种流量拥塞控制方法及装置
US11082540B2 (en) Network operations including protocol processing of a packet updating an operations data field of a different protocol
CN113132222B (zh) 报文转发方法、设备及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22934072

Country of ref document: EP

Kind code of ref document: A1