[go: up one dir, main page]

CN114690680A - Data processing method, controller and first network equipment - Google Patents

Data processing method, controller and first network equipment Download PDF

Info

Publication number
CN114690680A
CN114690680A CN202110122556.8A CN202110122556A CN114690680A CN 114690680 A CN114690680 A CN 114690680A CN 202110122556 A CN202110122556 A CN 202110122556A CN 114690680 A CN114690680 A CN 114690680A
Authority
CN
China
Prior art keywords
ioam
controller
bier
network device
information
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
CN202110122556.8A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN114690680A publication Critical patent/CN114690680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请提供了一种数据处理的方法,该方法包括:控制器接收多个在线操作管理维护IOAM信息,所述多个IOAM信息是位索引的显式复制BIER域中的多个设备分别上报的,所述多个IOAM信息中的每个IOAM信息包括位转发入口路由器标识BFIR ID、位索引转发表标识BIFT ID以及熵(entropy)值;所述控制器根据所述多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值将所述多个IOAM信息关联到第一组播流。上述方法中控制器可以将多个IOAM‑DEX转发节点分别上报的多个IOAM信息关联到一个组播流。

Figure 202110122556

The present application provides a data processing method. The method includes: a controller receives a plurality of online operation management and maintenance IOAM information, and the plurality of IOAM information is an explicit copy of a bit index and reported by a plurality of devices in the BIER domain. , each IOAM information in the plurality of IOAM information includes a bit forwarding entry router identification BFIR ID, a bit index forwarding table identification BIFT ID and an entropy (entropy) value; the controller according to the plurality of IOAM information each A BFIR ID, a bit index forwarding table identification BIFT ID, and an entropy value associate the plurality of IOAM information to the first multicast stream. In the above method, the controller may associate multiple IOAM information respectively reported by multiple IOAM-DEX forwarding nodes to one multicast stream.

Figure 202110122556

Description

数据处理的方法、控制器以及第一网络设备Data processing method, controller and first network device

本申请要求于2020年12月25日提交中国专利局、申请号为202011562578.8、发明名称为“发送BIER报文的方法、设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011562578.8 and the invention title "Method, Apparatus and System for Sending BIER Messages" filed with the China Patent Office on December 25, 2020, the entire contents of which are incorporated by reference in in this application.

技术领域technical field

本申请涉及网络通信领域,并且更具体地,涉及一种数据处理的方法、控制器以及第一网络设备。The present application relates to the field of network communication, and more particularly, to a data processing method, a controller, and a first network device.

背景技术Background technique

操作管理维护(operations、administration and maintenance,OAM)是一种为网络提供故障检测、故障申告、故障定位以及故障修复的网络管理技术。在线操作管理维护(in-situ operations、administration and maintenance,IOAM)也可以称为带内OAM,负责随流对网络的性能参数进行检测。IOAM可以包括IOAM直接导出(IOAM directexporting,IOAM-DEX)模式和IOAM追随(IOAM-trace)模式。Operations, administration and maintenance (OAM) is a network management technology that provides fault detection, fault reporting, fault location and fault repair for the network. Online operation management and maintenance (in-situ operations, administration and maintenance, IOAM) may also be called in-band OAM, which is responsible for detecting network performance parameters along with the flow. IOAM may include IOAM direct exporting (IOAM-DEX) mode and IOAM-trace (IOAM-trace) mode.

以IOAM-DEX模式为例,网络设备需要根据IOAM指令获取到IOAM信息后,上报至控制器。相关的技术方案中,控制器通过IOAM信息中的流标识(flow identifier,flow ID),将多个设备分别上报的IOAM信息与特定的组播流关联。该方案中仅可以将IOAM信息与特定的组播流关联,而无法根据IOAM信息确定转发组播流的设备。在组播流发生丢包等故障时,该控制器无法对故障进行定位。Taking the IOAM-DEX mode as an example, the network device needs to obtain the IOAM information according to the IOAM command and report it to the controller. In a related technical solution, the controller associates the IOAM information respectively reported by multiple devices with a specific multicast flow through a flow identifier (flow identifier, flow ID) in the IOAM information. In this solution, only the IOAM information can be associated with a specific multicast stream, and the device that forwards the multicast stream cannot be determined according to the IOAM information. When a fault such as packet loss occurs in the multicast stream, the controller cannot locate the fault.

发明内容SUMMARY OF THE INVENTION

本申请提供一种数据处理的方法,该方法能够使得控制器将多个IOAM-DEX转发节点分别上报的多个IOAM信息关联到一个组播流,并且该控制器还可以根据多个IOAM信息确定转发该组播流的网络设备,在组播流发生丢包等故障时,可以对故障进行定位。The present application provides a data processing method, which enables a controller to associate multiple IOAM information respectively reported by multiple IOAM-DEX forwarding nodes with a multicast stream, and the controller can also determine the multiple IOAM information according to the multiple IOAM information. The network device that forwards the multicast stream can locate the fault when a packet loss occurs in the multicast stream.

第一方面,提供了一种数据处理的方法,该方法包括:控制器接收多个在线操作管理维护IOAM信息,该多个IOAM信息是位索引的显式复制BIER域中的多个设备分别上报的,该多个IOAM信息中的每个IOAM信息包括位转发入口路由器标识BFIR ID、位索引转发表标识BIFT ID以及熵(entropy)值;并根据该多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值将该多个IOAM信息关联到第一组播流。In a first aspect, a data processing method is provided, the method includes: a controller receives a plurality of online operation management and maintenance IOAM information, the plurality of IOAM information is an explicit copy of a bit index and reported by a plurality of devices in a BIER domain respectively , each IOAM information in the multiple IOAM information includes bit forwarding entry router identification BFIR ID, bit index forwarding table identification BIFT ID and entropy (entropy) value; and according to each BFIR ID, The bit index forwarding table identifies the BIFT ID and the entropy value associating the plurality of IOAM information to the first multicast stream.

上述方法能够使得控制器将多个IOAM-DEX转发节点分别上报的多个IOAM信息关联到一个组播流,并且该控制器还可以根据多个IOAM信息确定转发该组播流的网络设备及其所属的set和sub-domain,在组播流发生丢包等故障时,可以对故障设备进行set和sub-domain定位。The above method enables the controller to associate multiple IOAM information respectively reported by multiple IOAM-DEX forwarding nodes with a multicast stream, and the controller can also determine the network device that forwards the multicast stream and its network device according to the multiple IOAM information. The set and sub-domain to which it belongs. When a fault such as packet loss occurs in the multicast stream, the set and sub-domain of the faulty device can be located.

结合第一方面,在第一方面的某些实现方式中,控制器根据该多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值相同,将该多个IOAM信息关联到该第一组播流。With reference to the first aspect, in some implementations of the first aspect, the controller associates the multiple IOAM information according to the same BFIR ID, bit index forwarding table identifier BIFT ID and entropy value in the multiple IOAM information to the first multicast stream.

结合第一方面,在第一方面的某些实现方式中,该每个IOAM信息中还包括第一字段和第二字段,该第一字段用于指示向该控制器上报该IOAM信息的当前设备的标识,该第二字段用于指示该当前设备的下一跳邻居设备的标识。In combination with the first aspect, in some implementations of the first aspect, each IOAM information further includes a first field and a second field, and the first field is used to indicate the current device that reports the IOAM information to the controller The identifier of the second field is used to indicate the identifier of the next-hop neighbor device of the current device.

结合第一方面,在第一方面的某些实现方式中,该当前设备的标识为该当前设备的地址,该下一跳邻居设备的标识为该下一跳邻居设备的地址。With reference to the first aspect, in some implementations of the first aspect, the identifier of the current device is the address of the current device, and the identifier of the next-hop neighbor device is the address of the next-hop neighbor device.

结合第一方面,在第一方面的某些实现方式中,该方法还包括:控制器根据该多个IOAM信息中每个IOAM信息的该第一字段和该第二字段,还原该第一组播流的转发路径。With reference to the first aspect, in some implementations of the first aspect, the method further includes: the controller restores the first group according to the first field and the second field of each IOAM information in the plurality of IOAM information The forwarding path of the stream.

结合第一方面,在第一方面的某些实现方式中,该多个IOAM信息中的每个IOAM信息还包括IOAM跟踪数据,该方法还包括:控制器根据该第一组播流的转发路径和该多个IOAM信息中的IOAM跟踪数据,得到该第一组播流的入口设备到出口设备之间的网络性能。With reference to the first aspect, in some implementations of the first aspect, each IOAM information in the plurality of IOAM information further includes IOAM tracking data, and the method further includes: the controller according to the forwarding path of the first multicast stream and the IOAM tracking data in the plurality of IOAM information to obtain the network performance between the ingress device and the egress device of the first multicast stream.

第二方面,提供了一种数据处理的方法,该方法包括:第一网络设备获取位索引的显式复制BIER报文,该BIER报文中包括位转发入口路由器标识BFIR ID、位索引转发表标识BIFT ID以及熵(entropy)值以及在线操作管理维护直接导出IOAM-DEX指令头;该第一网络设备根据该IOAM-DEX指令头获取IOAM信息,该IOAM信息中包括该BFIR ID、BIFT ID以及entropy值;该第一网络设备向控制器发送该IOAM信息。In a second aspect, a data processing method is provided, the method comprising: a first network device obtains an explicit copy BIER message of a bit index, where the BIER message includes a bit forwarding entry router identifier BFIR ID, a bit index forwarding table Identify the BIFT ID and entropy (entropy) value and directly derive the IOAM-DEX command header from online operation management and maintenance; the first network device obtains IOAM information according to the IOAM-DEX command header, and the IOAM information includes the BFIR ID, BIFT ID and entropy value; the first network device sends the IOAM information to the controller.

结合第二方面,在第二方面的某些实现方式中,该方法还包括:该第一网络设备根据该IOAM-DEX指令头获取该第一网络设备的标识、该第一网络设备到下一跳邻居设备的标识,该下一跳邻居设备为该第一网络设备该BIER报文的目的设备的下一跳;该第一网络设备向该控制器发送该第一网络设备的标识以及该第一网络设备的下一跳邻居设备的标识。With reference to the second aspect, in some implementations of the second aspect, the method further includes: the first network device acquires the identifier of the first network device according to the IOAM-DEX command header, the first network device to the next The identifier of the hop neighbor device, the next hop neighbor device is the next hop of the destination device of the BIER message of the first network device; the first network device sends the identifier of the first network device and the first network device to the controller. The identity of a network device's next-hop neighbor device.

结合第二方面,在第二方面的某些实现方式中,该第一网络设备的标识为该第一网络设备的地址,该下一跳邻居设备的标识为该下一跳邻居设备的地址。With reference to the second aspect, in some implementations of the second aspect, the identifier of the first network device is the address of the first network device, and the identifier of the next-hop neighbor device is the address of the next-hop neighbor device.

结合第二方面,在第二方面的某些实现方式中,该方法还包括:该第一网络设备根据该IOAM-DEX指令头获取IOAM跟踪数据;该第一网络设备向该控制器发送该IOAM跟踪数据。With reference to the second aspect, in some implementations of the second aspect, the method further includes: the first network device acquires IOAM tracking data according to the IOAM-DEX command header; the first network device sends the IOAM to the controller track data.

结合第二方面,在第二方面的某些实现方式中,该第一网络设备为BIER域的位转发入口路由器BFIR,该方法还包括:该第一网络设备接收用户报文;该第一网络设备对该用户报文进行封装,得到该BIER报文。With reference to the second aspect, in some implementations of the second aspect, the first network device is a bit forwarding ingress router BFIR of the BIER domain, and the method further includes: the first network device receives a user message; the first network device The device encapsulates the user packet to obtain the BIER packet.

结合第二方面,在第二方面的某些实现方式中,该第一网络设备为BIER域的位转发出口路由器BFER,该方法还包括:该第一网络设备对该BIER报文解封装,得到内层的用户报文。With reference to the second aspect, in some implementations of the second aspect, the first network device is a bit forwarding egress router BFER of the BIER domain, and the method further includes: the first network device decapsulates the BIER message to obtain Inner user packets.

第三方面,提供了一种控制器,包括:接收模块,处理模块,In a third aspect, a controller is provided, comprising: a receiving module, a processing module,

接收模块,用于接收多个在线操作管理维护IOAM信息,该多个IOAM信息是位索引的显式复制BIER域中的多个设备分别上报的,该多个IOAM信息中的每个IOAM信息包括位转发入口路由器标识BFIR ID、位索引转发表标识BIFT ID以及熵(entropy)值;The receiving module is used to receive multiple online operation management and maintenance IOAM information, the multiple IOAM information is reported by multiple devices in the BIER domain of the explicit copy of the bit index, and each IOAM information in the multiple IOAM information includes Bit forwarding entry router identifier BFIR ID, bit index forwarding table identifier BIFT ID, and entropy value;

处理模块,用于根据该多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFTID和entropy值将该多个IOAM信息关联到第一组播流。The processing module is configured to associate the plurality of IOAM information with the first multicast stream according to each BFIR ID, bit index forwarding table identifier BIFTID and entropy value in the plurality of IOAM information.

结合第三方面,在第三方面的某些实现方式中,该处理模块具体用于:根据该多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值相同,将该多个IOAM信息关联到该第一组播流。In conjunction with the third aspect, in some implementations of the third aspect, the processing module is specifically configured to: according to the same BFIR ID, bit index forwarding table identification BIFT ID and entropy value in the multiple IOAM information, the A plurality of IOAM messages are associated with the first multicast stream.

结合第三方面,在第三方面的某些实现方式中,该每个IOAM信息中还包括第一字段和第二字段,该第一字段用于指示向该控制器上报该IOAM信息的当前设备的标识,该第二字段用于指示该当前设备的下一跳邻居设备的标识。With reference to the third aspect, in some implementations of the third aspect, each IOAM information further includes a first field and a second field, and the first field is used to indicate the current device that reports the IOAM information to the controller The identifier of the second field is used to indicate the identifier of the next-hop neighbor device of the current device.

结合第三方面,在第三方面的某些实现方式中,该当前设备的标识为该当前设备的地址,该下一跳邻居设备的标识为该下一跳邻居设备的地址。With reference to the third aspect, in some implementations of the third aspect, the identifier of the current device is the address of the current device, and the identifier of the next-hop neighbor device is the address of the next-hop neighbor device.

结合第三方面,在第三方面的某些实现方式中,该处理模块还用于:根据该多个IOAM信息中每个IOAM信息的该第一字段和该第二字段,还原该第一组播流的转发路径。With reference to the third aspect, in some implementations of the third aspect, the processing module is further configured to: restore the first group according to the first field and the second field of each IOAM information in the plurality of IOAM information The forwarding path of the stream.

结合第三方面,在第三方面的某些实现方式中,该多个IOAM信息中的每个IOAM信息还包括IOAM跟踪数据,该处理模块还用于:根据该第一组播流的转发路径和该多个IOAM信息中的IOAM跟踪数据,得到该第一组播流的入口设备到出口设备之间的网络性能。With reference to the third aspect, in some implementations of the third aspect, each IOAM information in the plurality of IOAM information further includes IOAM tracking data, and the processing module is further configured to: according to the forwarding path of the first multicast stream and the IOAM tracking data in the plurality of IOAM information to obtain the network performance between the ingress device and the egress device of the first multicast stream.

第四方面,提供了一种第一网络设备,包括:获取模块,发送模块,In a fourth aspect, a first network device is provided, comprising: an obtaining module, a sending module,

获取模块,用于获取位索引的显式复制BIER报文,该BIER报文中包括位转发入口路由器标识BFIR ID、位索引转发表标识BIFT ID以及熵(entropy)值以及在线操作管理维护直接导出IOAM-DEX指令头;The acquisition module is used to obtain the explicit copy BIER message of the bit index. The BIER message includes the bit forwarding entry router identifier BFIR ID, the bit index forwarding table identifier BIFT ID, and the entropy (entropy) value and the direct export of online operation management and maintenance. IOAM-DEX instruction header;

该获取模块,还用于根据该IOAM-DEX指令头获取IOAM信息,该IOAM信息中包括该BFIR ID、BIFT ID以及entropy值;The obtaining module is further configured to obtain IOAM information according to the IOAM-DEX instruction header, where the IOAM information includes the BFIR ID, BIFT ID and entropy value;

发送模块,用于向控制器发送该IOAM信息。The sending module is used for sending the IOAM information to the controller.

结合第四方面,在第四方面的某些实现方式中,该获取模块还用于:根据该IOAM-DEX指令头获取该第一网络设备的标识、该第一网络设备到下一跳邻居设备的标识,该下一跳邻居设备为该第一网络设备该BIER报文的目的设备的下一跳;该发送模块还用于:该第一网络设备向该控制器发送该第一网络设备的标识以及该第一网络设备的下一跳邻居设备的标识。With reference to the fourth aspect, in some implementations of the fourth aspect, the obtaining module is further configured to: obtain the identifier of the first network device, the next-hop neighbor device from the first network device according to the IOAM-DEX command header The identifier of the next hop neighbor device is the next hop of the destination device of the BIER message of the first network device; the sending module is also used for: the first network device sends the controller of the first network device The identifier and the identifier of the next-hop neighbor device of the first network device.

结合第四方面,在第四方面的某些实现方式中,该第一网络设备的标识为该第一网络设备的地址,该下一跳邻居设备的标识为该下一跳邻居设备的地址。With reference to the fourth aspect, in some implementations of the fourth aspect, the identifier of the first network device is the address of the first network device, and the identifier of the next-hop neighbor device is the address of the next-hop neighbor device.

结合第四方面,在第四方面的某些实现方式中,该获取模块还用于:根据该IOAM-DEX指令头获取IOAM跟踪数据;该发送模块还用于:向该控制器发送该IOAM跟踪数据。In conjunction with the fourth aspect, in some implementations of the fourth aspect, the obtaining module is further configured to: obtain the IOAM tracking data according to the IOAM-DEX command header; the sending module is further configured to: send the IOAM tracking data to the controller data.

结合第四方面,在第四方面的某些实现方式中,该第一网络设备为BIER域的位转发入口路由器BFIR,该第一网络设备还包括:接收模块,封装模块,With reference to the fourth aspect, in some implementations of the fourth aspect, the first network device is a bit forwarding ingress router BFIR of the BIER domain, and the first network device further includes: a receiving module, an encapsulating module,

接收模块,用于接收用户报文;The receiving module is used to receive user messages;

封装模块,用于对该用户报文进行封装,得到该BIER报文。The encapsulation module is used for encapsulating the user message to obtain the BIER message.

结合第四方面,在第四方面的某些实现方式中,该第一网络设备为BIER域的位转发出口路由器BFER,该第一网络设备还包括:解封装模块,With reference to the fourth aspect, in some implementations of the fourth aspect, the first network device is a bit forwarding egress router BFER in the BIER domain, and the first network device further includes: a decapsulation module,

解封装模块,用于对该BIER报文解封装,得到内层的用户报文。The decapsulation module is used to decapsulate the BIER message to obtain the inner user message.

第五方面,提供了一种控制器,该控制器包括处理器、存储器、接口和总线。其中接口可以通过无线或有线的方式实现,具体来讲可以是网卡。上述处理器、存储器和接口通过总线连接。In a fifth aspect, a controller is provided, the controller including a processor, a memory, an interface and a bus. The interface may be implemented in a wireless or wired manner, specifically a network card. The above-mentioned processor, memory and interface are connected by a bus.

该接口具体可以包括发送器和接收器,用于控制器实现上述收发。例如,该接口用于支持接收多个IOAM信息。Specifically, the interface may include a transmitter and a receiver, for the controller to implement the above-mentioned transceiver. For example, this interface is used to support receiving multiple IOAM messages.

该处理器用于执行上述实施例中由控制器进行的处理。例如,该处理器用于根据所述多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值将所述多个IOAM信息关联到第一组播流;和/或用于本文所描述的技术的其他过程。存储器包括操作系统和应用程序,用于存储程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成方法实施例中涉及控制器的处理过程。可选的,该存储器可以包括只读存储器(read-only memory,ROM)和随机存取存储器(random access memory,RAM)。其中,该ROM包括基本输入/输出系统(basic input/output system,BIOS)或嵌入式系统;该RAM包括应用程序和操作系统。当需要运行控制器时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导控制器进入正常运行状态。在控制器进入正常运行状态后,运行在RAM中的应用程序和操作系统,从而,完成上述第一方面以及任一可能的实现方式中的方法实施例中涉及控制器的处理过程。This processor is used to execute the processing performed by the controller in the above-described embodiments. For example, the processor is configured to associate the plurality of IOAM messages with the first multicast stream according to each of the BFIR ID, bit index forwarding table identification BIFT ID and entropy value in the plurality of IOAM messages; and/or for Other procedures for the techniques described herein. The memory includes an operating system and an application program, and is used to store programs, codes or instructions. When the processor or hardware device executes these programs, codes or instructions, the processing process involving the controller in the method embodiment can be completed. Optionally, the memory may include read-only memory (ROM) and random access memory (RAM). Wherein, the ROM includes a basic input/output system (basic input/output system, BIOS) or an embedded system; the RAM includes an application program and an operating system. When the controller needs to be run, the system is booted through the BIOS solidified in the ROM or the bootloader in the embedded system, and the controller is guided into a normal operation state. After the controller enters the normal running state, the application program and the operating system running in the RAM, thereby completing the processing process related to the controller in the method embodiment in the above-mentioned first aspect and any possible implementation manner.

可以理解的是,在实际应用中,控制器可以包含任意数量的接口,处理器或者存储器。It will be appreciated that, in practical applications, the controller may contain any number of interfaces, processors or memories.

第六方面,提供了一种第一网络设备,该第一网络设备包括处理器、存储器、接口和总线。其中接口可以通过无线或有线的方式实现,具体来讲可以是网卡。上述处理器、存储器和接口通过总线连接。In a sixth aspect, a first network device is provided, where the first network device includes a processor, a memory, an interface, and a bus. The interface may be implemented in a wireless or wired manner, specifically a network card. The above-mentioned processor, memory and interface are connected by a bus.

该接口具体可以包括发送器和接收器,用于第一网络设备实现上述收发。例如,该接口用于支持用于向控制器发送IOAM信息。又例如,该接口用于支持发送BIER报文。Specifically, the interface may include a transmitter and a receiver, which are used by the first network device to implement the above-mentioned transceiving. For example, this interface is used to support sending IOAM information to the controller. For another example, this interface is used to support sending BIER packets.

该处理器用于执行上述实施例中由第一网络设备进行的处理。例如,该处理器用于获取BIER报文;根据所述IOAM-DEX指令头获取IOAM信息;和/或用于本文所描述的技术的其他过程。存储器包括操作系统和应用程序,用于存储程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成方法实施例中涉及第一网络设备的处理过程。可选的,该存储器可以包括只读存储器(read-only memory,ROM)和随机存取存储器(random access memory,RAM)。其中,该ROM包括基本输入/输出系统(basic input/outputsystem,BIOS)或嵌入式系统;该RAM包括应用程序和操作系统。当需要运行第一网络设备时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导第一网络设备进入正常运行状态。在第一网络设备进入正常运行状态后,运行在RAM中的应用程序和操作系统,从而,完成上述第一方面以及任一可能的实现方式中的方法实施例中涉及第一网络设备的处理过程。The processor is configured to execute the processing performed by the first network device in the above embodiment. For example, the processor is used to obtain BIER messages; to obtain IOAM information from the IOAM-DEX instruction header; and/or other processes for the techniques described herein. The memory includes an operating system and an application program, and is used to store programs, codes or instructions. When the processor or the hardware device executes these programs, codes or instructions, the processing process involving the first network device in the method embodiment can be completed. Optionally, the memory may include read-only memory (ROM) and random access memory (RAM). Wherein, the ROM includes a basic input/output system (basic input/output system, BIOS) or an embedded system; the RAM includes an application program and an operating system. When the first network device needs to be run, the system is booted through the BIOS solidified in the ROM or the bootloader in the embedded system to boot the first network device into a normal operation state. After the first network device enters the normal running state, the application program and the operating system running in the RAM, thereby completing the processing process involving the first network device in the method embodiment of the above-mentioned first aspect and any possible implementation manner .

可以理解的是,在实际应用中,第一网络设备可以包含任意数量的接口,处理器或者存储器。It can be understood that, in practical applications, the first network device may include any number of interfaces, processors or memories.

第七方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在控制器上运行时,使得控制器执行上述第一方面或第一方面的任一种可能执行的方法。In a seventh aspect, a computer program product is provided, the computer program product comprising: computer program code, when the computer program code is run on the controller, the controller executes the first aspect or any one of the first aspects possible methods.

第八方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在第一网络设备上运行时,使得第一网络设备执行上述第二方面或第二方面的任一种可能执行的方法。In an eighth aspect, a computer program product is provided, the computer program product comprising: computer program code, when the computer program code is executed on the first network device, the first network device is made to perform the above-mentioned second aspect or the second aspect any possible method of implementation.

第九方面,提供了一种计算机可读介质,该计算机可读介质存储有程序代码,当该计算机程序代码在控制器上运行时,使得控制器执行上述第一方面或第一方面的任一种可能执行的方法。这些计算机可读存储包括但不限于如下的一个或者多个:只读存储器(read-only memory,ROM)、可编程ROM(programmable ROM,PROM)、可擦除的PROM(erasablePROM,EPROM)、Flash存储器、电EPROM(electrically EPROM,EEPROM)以及硬盘驱动器(harddrive)。In a ninth aspect, a computer-readable medium is provided, and the computer-readable medium stores program codes that, when the computer program codes are executed on the controller, cause the controller to execute the above-mentioned first aspect or any one of the first aspects a possible way to do it. These computer-readable storages include but are not limited to one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (erasablePROM, EPROM), Flash Memory, electrical EPROM (electrically EPROM, EEPROM) and hard drive (harddrive).

第十方面,提供了一种计算机可读介质,该计算机可读介质存储有程序代码,当该计算机程序代码在第一网络设备上运行时,使得第一网络设备执行上述第二方面或第二方面的任一种可能执行的方法。这些计算机可读存储包括但不限于如下的一个或者多个:只读存储器(read-only memory,ROM)、可编程ROM(programmable ROM,PROM)、可擦除的PROM(erasable PROM,EPROM)、Flash存储器、电EPROM(electrically EPROM,EEPROM)以及硬盘驱动器(hard drive)。In a tenth aspect, a computer-readable medium is provided, the computer-readable medium stores program codes, and when the computer program codes are executed on the first network device, the first network device is made to execute the above-mentioned second aspect or the second Any possible method of performing the aspect. These computer-readable storages include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (erasable PROM, EPROM), Flash memory, electrical EPROM (electrically EPROM, EEPROM) and hard drive (hard drive).

第十一方面,提供一种芯片,该芯片包括处理器与数据接口,其中,处理器通过该数据接口读取存储器上存储的指令,以执行第一方面或第一方面任意一种可能的实现方式中的方法。在具体实现过程中,该芯片可以以中央处理器(central processing unit,CPU)、微控制器(micro controller unit,MCU)、微处理器(micro processing unit,MPU)、数字信号处理器(digital signal processing,DSP)、片上系统(system on chip,SoC)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或可编辑逻辑器件(programmable logicdevice,PLD)的形式实现。In an eleventh aspect, a chip is provided, the chip includes a processor and a data interface, wherein the processor reads an instruction stored in a memory through the data interface to execute the first aspect or any possible implementation of the first aspect method in method. In the specific implementation process, the chip can be a central processing unit (CPU), a microcontroller (micro controller unit, MCU), a microprocessor (micro processing unit, MPU), a digital signal processor (digital signal processor) processing, DSP), system on chip (system on chip, SoC), application-specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or programmable logic device (programmable logic device, PLD) is implemented in the form of.

第十二方面,提供一种芯片,该芯片包括处理器与数据接口,其中,处理器通过该数据接口读取存储器上存储的指令,以执行第二方面或第二方面任意一种可能的实现方式中的方法。在具体实现过程中,该芯片可以以中央处理器(central processing unit,CPU)、微控制器(micro controller unit,MCU)、微处理器(micro processing unit,MPU)、数字信号处理器(digital signal processing,DSP)、片上系统(system on chip,SoC)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或可编辑逻辑器件(programmable logicdevice,PLD)的形式实现。A twelfth aspect provides a chip, the chip includes a processor and a data interface, wherein the processor reads an instruction stored in a memory through the data interface to execute the second aspect or any possible implementation of the second aspect method in method. In the specific implementation process, the chip can be a central processing unit (CPU), a microcontroller (micro controller unit, MCU), a microprocessor (micro processing unit, MPU), a digital signal processor (digital signal processor) processing, DSP), system on chip (system on chip, SoC), application-specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or programmable logic device (programmable logic device, PLD) is implemented in the form of.

第十三方面,提供了一种系统,该系统包括上述第三方面以及任一可能的实现方式中的控制器和第四方面以及任一可能的实现方式中的第一网络设备。In a thirteenth aspect, a system is provided, the system including the controller in the third aspect and any possible implementation manner, the fourth aspect and the first network device in any possible implementation manner.

附图说明Description of drawings

图1是一种BIER域的示意性框图。Figure 1 is a schematic block diagram of a BIER domain.

图2是一种可能的BIER头格式的示意性框图。Figure 2 is a schematic block diagram of one possible BIER header format.

图3是另一种可能的BIER头格式的示意性框图。Figure 3 is a schematic block diagram of another possible BIER header format.

图4是一种BIER转发的场景示意图。FIG. 4 is a schematic diagram of a scenario of BIER forwarding.

图5是本申请实施例提供的一种数据处理的方法的示意性流程图。FIG. 5 is a schematic flowchart of a data processing method provided by an embodiment of the present application.

图6是本申请实施例提供的另一种数据处理的方法的示意性流程图。FIG. 6 is a schematic flowchart of another data processing method provided by an embodiment of the present application.

图7是一种IOAM-DEX指令头的示意性框图。FIG. 7 is a schematic block diagram of an IOAM-DEX command header.

图8是本申请实施例提供的一种控制器800的示意性结构图。FIG. 8 is a schematic structural diagram of a controller 800 provided by an embodiment of the present application.

图9是本申请实施例提供的一种第一网络设备900的示意性结构图。FIG. 9 is a schematic structural diagram of a first network device 900 provided by an embodiment of the present application.

图10是本申请实施例提供的第一网络设备2000的硬件结构示意图。FIG. 10 is a schematic diagram of a hardware structure of a first network device 2000 according to an embodiment of the present application.

图11是本申请实施例提供的另一种第一网络设备2100的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of another first network device 2100 provided by an embodiment of the present application.

图12是本申请实施例提供的控制器2200的硬件结构示意图。FIG. 12 is a schematic diagram of a hardware structure of a controller 2200 provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.

本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:包括单独存在A,同时存在A和B,以及单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the relationship of the associated objects, means that there can be three relationships, for example, A and/or B, which can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple .

组播(multicast)是通过使用组播地址将数据以高效的方式发往处于传输控制协议(transmission control protocol,TCP)/互联网协议(internet protocol,IP)网络上的多个接收者的数据传输方式。组播源经由网络中的链路向组播组中成员发送组播流,该组播组中的成员均可以接收到该组播流。组播传输方式实现了组播源和组播组成员之间的点对多点的数据连接。由于组播流在每条网络链路上只需传递一次,且只有在链路出现支路时,该组播才会被复制。因此,组播传输方式提高了数据传输效率和减少了骨干网络出现拥塞的可能性。Multicast (multicast) is a data transmission method that sends data to multiple recipients on a Transmission Control Protocol (TCP)/Internet Protocol (IP) network in an efficient manner by using a multicast address . The multicast source sends the multicast stream to the members of the multicast group via the links in the network, and all the members of the multicast group can receive the multicast stream. The multicast transmission mode realizes the point-to-multipoint data connection between the multicast source and the members of the multicast group. Since the multicast stream only needs to be transmitted once on each network link, and only when the link has a branch, the multicast will be replicated. Therefore, the multicast transmission method improves the data transmission efficiency and reduces the possibility of congestion in the backbone network.

互联网协议(internet protocol,IP)组播技术实现了IP网络中点到多点的高效数据传送,能够有效地节约网络带宽、降低网络负载。因此,在实时数据传送、多媒体会议、数据拷贝、交互式网络电视(internet protocol television,IPTV)、游戏和仿真等诸多方面都有广泛的应用。然而,该组播技术需要使用组播协议构建组播树,然后利用组播树将网络平面逻辑树状,以实现组播点到多点的数据转发。这种以构建分发树为核心的中间设备都需要维护复杂的组播转发信息状态。在网络规模越来越大,组播报文的流量与日俱增的情况下,这种组播技术面临越来越大的成本和运维方面的挑战。The Internet Protocol (IP) multicast technology realizes efficient point-to-multipoint data transmission in an IP network, which can effectively save network bandwidth and reduce network load. Therefore, it is widely used in many aspects such as real-time data transmission, multimedia conference, data copying, internet protocol television (IPTV), games and simulation. However, this multicast technology needs to use a multicast protocol to build a multicast tree, and then use the multicast tree to logically tree the network plane to implement multicast point-to-multipoint data forwarding. This kind of intermediate equipment with the construction of the distribution tree as the core needs to maintain the complex multicast forwarding information state. As the network scale is getting larger and larger and the traffic of multicast packets is increasing day by day, this multicast technology faces more and more challenges in terms of cost and operation and maintenance.

为此,业界提出了一种新的用于构建组播报文转发路径的技术,称为位索引的显式复制(bit index explicit replication,BIER)技术,为了便于描述,下面先结合图1至图3,对BIER技术的相关概念进行说明。To this end, the industry has proposed a new technology for building multicast packet forwarding paths, which is called bit index explicit replication (BIER) technology. Figure 3 illustrates the related concepts of BIER technology.

如图1所示,支持BIER技术的路由器称为位转发路由器(Bit-forwarding router,BFR)。在BIER域中,对用户报文(也可以称为业务报文)进行封装获得BIER报文的BFR称为位转发入口路由器(bit forwarding ingress router,BFIR)。对从BIER报文中解封装出用户报文的BFR称为位转发出口路由器(Bit Forwarding Egress Router,BFER)。由上述BFIR以及一个或多个BFER组成的传输BIER报文的网络域称为BIER域(BIER domain)。可选地,该BIER域还可以包括一个或多个BFR。其中,BFIR位于BIER域的入口位置,作为BIER报文转发的头节点负责对用户报文进行BIER封装;BFER位于BIER域的出口位置,作为BIER报文转发的尾节点负责对BIER报文进行解封装。应理解,BIER域中的BFIR和BFER也可以称为BIER域中的边缘BFR。As shown in Fig. 1, a router supporting the BIER technology is called a Bit-forwarding router (BFR). In the BIER domain, a BFR that encapsulates a user message (also referred to as a service message) to obtain a BIER message is called a bit forwarding ingress router (BFIR). The BFR that decapsulates the user message from the BIER message is called a Bit Forwarding Egress Router (BFER). The network domain that transmits BIER packets, which is composed of the above-mentioned BFIR and one or more BFERs, is called a BIER domain (BIER domain). Optionally, the BIER domain may also include one or more BFRs. Among them, BFIR is located at the entrance of the BIER domain. As the head node of BIER packet forwarding, it is responsible for BIER encapsulation of user packets; BFER is located at the exit position of the BIER domain, and as the tail node of BIER packet forwarding, it is responsible for decoding BIER packets. package. It should be understood that BFIR and BFER in the BIER domain can also be referred to as edge BFRs in the BIER domain.

上述BIER报文包括BIER头和用户报文。其中,用户报文可以是互联网协议第6版(Internet Protocol version 6,IPv6)组播报文,或者还可以是互联网协议第4版(Internet Protocol version 4,IPv4)组播报文,或者还可以是以太网(Ethernet)报文,本申请不做具体限定。BIER头中可以包括位串(Bit String)字段,该Bit String标注了用户报文的所有目的设备。应理解,用户报文的所有目的设备可以是用户报文需要发送至的多个BFER的集合。The above BIER message includes a BIER header and a user message. The user message may be an Internet Protocol version 6 (Internet Protocol version 6, IPv6) multicast message, or may also be an Internet Protocol version 4 (Internet Protocol version 4, IPv4) multicast message, or It is an Ethernet (Ethernet) message, which is not specifically limited in this application. The BIER header may include a bit string (Bit String) field, where the Bit String marks all destination devices of the user message. It should be understood that all destination devices of the user packet may be a set of multiple BFERs to which the user packet needs to be sent.

本申请实施例对BIER头格式不做具体限定,只要BIER头中包含Bit String字段即可。下面分别结合图2-图3,对两种可能的BIER头的格式进行详细描述。This embodiment of the present application does not specifically limit the format of the BIER header, as long as the BIER header includes a Bit String field. Two possible formats of the BIER header are described in detail below with reference to Figures 2 to 3 respectively.

图2是一种可能的BIER头格式的示意性框图。如图2所示,BIER头中可以包含但不限于:位索引转发表标识(bit index forwarding table identifier,BIFT ID)、比特串长度(bit string length,BSL)、64bit(8个字节)的其他字段,例如,BIER头后面的原始组播数据报文的流量类型(traffic class,TC)、栈(stack,S)、生存时间(time to live,TTL)字段、熵(entropy)字段、版本号(version,Ver)字段、半字节(nibble)字段、协议(protocol,proto)字段、操作维护管理(operation administration and maintenance,OAM)字段、保留(reserve,Rsv)字段、差分服务代码点(differential service code points,DSCP)字段等。Figure 2 is a schematic block diagram of one possible BIER header format. As shown in Figure 2, the BIER header may include but is not limited to: bit index forwarding table identifier (BIFT ID), bit string length (BSL), 64bit (8 bytes) Other fields, for example, the traffic type (traffic class, TC), stack (stack, S), time to live (TTL) field, entropy (entropy) field, version of the original multicast data packet after the BIER header number (version, Ver) field, nibble (nibble) field, protocol (protocol, proto) field, operation administration and maintenance (OAM) field, reserve (reserve, Rsv) field, differentiated services code point ( differential service code points, DSCP) fields, etc.

下面分别对BIER头中的字段进行详细描述。The fields in the BIER header are described in detail below.

(1)BIFT ID字段(1) BIFT ID field

BIFT ID在BIER多协议标签交换(Multi Protocol Label Switching,MPLS)封装下为一个MPLS标签(label,L)。一个BIFT ID可以对应子域(sub-domain,SD)/比特串长度(bit string length,BSL)/集合标识(set identifier,SI)的一个组合。也就是说,不同的BIFT ID可以对应于不同的SD/BSL/SI组合。The BIFT ID is an MPLS label (label, L) under BIER Multi Protocol Label Switching (Multi Protocol Label Switching, MPLS) encapsulation. A BIFT ID may correspond to a combination of sub-domain (sub-domain, SD)/bit string length (BSL)/set identifier (set identifier, SI). That is, different BIFT IDs may correspond to different SD/BSL/SI combinations.

应理解,不同的BIFT ID可以映射出不同的SD/BSL/SI组合。在图2所示的BIER头格式中不直接包含SD/BSL/SI字段,SD/BSL/SI为三个隐式字段,需要根据BIFT ID字段映射出SD/BSL/SI取值。It should be understood that different BIFT IDs can be mapped to different SD/BSL/SI combinations. SD/BSL/SI fields are not directly included in the BIER header format shown in FIG. 2 , SD/BSL/SI are three implicit fields, and SD/BSL/SI values need to be mapped according to the BIFT ID field.

1、子域(sub-domain,SD)1. Sub-domain (SD)

一个BIER域可以根据实际的业务场景的需求划分和配置为不同的SD,以支持内部网关协议(Interior Gateway Protocol,IGP)多拓扑等特性。每个BIER域须包含至少一个sub-domain,即默认的sub-domain 0。当划分多个子域时,BIER域中各BFR路由器须配置所有子域。例如可以在BIER域中各BFR路由器上配置一个sub-domain 0,使用系统默认拓扑,再配置一个sub-domain 1,使用组播拓扑。A BIER domain can be divided and configured into different SDs according to the requirements of actual business scenarios to support features such as Interior Gateway Protocol (Interior Gateway Protocol, IGP) multi-topology. Each BIER domain must contain at least one sub-domain, the default sub-domain 0. When dividing multiple sub-domains, each BFR router in the BIER domain must configure all sub-domains. For example, you can configure a sub-domain 0 on each BFR router in the BIER domain to use the system default topology, and configure a sub-domain 1 to use the multicast topology.

每个子域SD可以由子域标识(sub-domain identifier,SD ID)来表示。例如,SDID的取值为[0-255],长度为8bit。作为一个示例,可根据虚拟专用网(virtual privatenetwork,VPN)的不同,将BIER域配置为不同的SD,并配置不同的VPN使用不同的SD。例如,VPN 1使用SD 0,VPN 2使用SD 1。Each sub-domain SD may be represented by a sub-domain identifier (SD ID). For example, the value of SDID is [0-255], and the length is 8 bits. As an example, according to different virtual private networks (virtual private networks, VPNs), the BIER domains may be configured as different SDs, and different VPNs may be configured to use different SDs. For example, VPN 1 uses SD 0 and VPN 2 uses SD 1.

需要说明的是,多个VPN也可以使用相同的SD,BIER域中不同的SD可以在一个内部网关协议(Interior Gateway Protocol,IGP)进程或拓扑中,也可以不在一个IGP进程或拓扑中,本申请实施例对此不做具体限定。It should be noted that multiple VPNs can also use the same SD, and different SDs in the BIER domain can be in an Interior Gateway Protocol (IGP) process or topology, or not in an IGP process or topology. This is not specifically limited in the application examples.

2、比特串长度(Bit String Length,BSL)2. Bit String Length (BSL)

BSL为BIER头中包括的bit string的长度。BSL可以有多种,本申请实施例对此不做具体限定。最小的BSL为64位,BSL还依次可以有128位,256位,512位,1024位,2048位,最大的BSL为4096位。具体的,在报文中通过4bit来标识,例如,当BSL为64位时,报文中用0001标识,当BSL为128位时,报文中用0010标识,当BSL为512位时,报文中用0100标识,当BSL为1024位时,报文中用0101标识,依次类推。BSL is the length of the bit string included in the BIER header. There may be multiple BSLs, which are not specifically limited in this embodiment of the present application. The smallest BSL is 64 bits, and the BSL can also have 128 bits, 256 bits, 512 bits, 1024 bits, 2048 bits, and the largest BSL is 4096 bits. Specifically, the message is identified by 4 bits. For example, when the BSL is 64 bits, the message is identified with 0001; when the BSL is 128 bits, the message is identified with 0010; when the BSL is 512 bits, the message The text is marked with 0100. When the BSL is 1024 bits, the message is marked with 0101, and so on.

3、集合标识(Set Identifier,SI)3. Set Identifier (SI)

如果网络中BFER设备的数量大于256,为了适应这种情况,BIER封装中不仅包含一个Bit String,还会包含有一个集合标识(Set Identifier,SI)。SI的作用在于将BIER设备的编号划分为多个不同的区间,从而支持更大规模的网络编址。If the number of BFER devices in the network is greater than 256, in order to adapt to this situation, the BIER package contains not only a Bit String, but also a Set Identifier (SI). The role of SI is to divide the number of BIER devices into multiple different intervals, thereby supporting larger-scale network addressing.

SI可以理解为网络中的多个边缘BFR或配置的BFR ID组成的集合。作为一个示例,BSL为256bit,但是网络中有超过256个边缘BFR,或者配置的BFR ID有超过256个,则需要将这些边缘BFR或BFR ID划分为不同的集合。例如,BFR ID为1至256的256个边缘BFR为集合0(set index0,或SI=0),BFR ID为257至512的256个边缘BFR为集合1(set index 1,或者SI=1)。SI can be understood as a set of multiple edge BFRs or configured BFR IDs in the network. As an example, if the BSL is 256 bits, but there are more than 256 edge BFRs in the network, or more than 256 BFR IDs are configured, these edge BFRs or BFR IDs need to be divided into different sets. For example, 256 edge BFRs with BFR IDs 1 to 256 are set 0 (set index 0, or SI=0), and 256 edge BFRs with BFR IDs 257 to 512 are set 1 (set index 1, or SI=1) .

BIER域中的BFR在接收到了BIER报文之后,可以根据BIER头中的BIFT ID确定该BIER报文属于哪个SD,使用的BSL以及报文属于该BSL的哪个SI组成的集合。After receiving the BIER message, the BFR in the BIER domain can determine which SD the BIER message belongs to, the BSL used, and which SI of the BSL the message belongs to according to the BIFT ID in the BIER header.

下面列举出几种可能的BIFT ID所代表的对应的SD/BSL/SI组合。The following lists the corresponding SD/BSL/SI combinations represented by several possible BIFT IDs.

BIFT ID=1:corresponding to SD 0,BSL 256,SI 0//相当于SD 0/BSL 256/SI0BIFT ID=1: corresponding to SD 0, BSL 256, SI 0//equivalent to SD 0/BSL 256/SI0

BIFT ID=2:corresponding to SD 0,BSL 256,SI 1//相当于SD 0/BSL 256/SI1BIFT ID=2: corresponding to SD 0, BSL 256, SI 1//equivalent to SD 0/BSL 256/SI1

BIFT ID=3:corresponding to SD 0,BSL 256,SI 2//相当于SD 0/BSL 256/SI2BIFT ID=3: corresponding to SD 0, BSL 256, SI 2//equivalent to SD 0/BSL 256/SI2

BIFT ID=4:corresponding to SD 0,BSL 256,SI 3//相当于SD 0/BSL 256/SI3BIFT ID=4: corresponding to SD 0, BSL 256, SI 3//equivalent to SD 0/BSL 256/SI3

BIFT ID=5:corresponding to SD 0,BSL 512,SI 0//相当于SD 0/BSL 512/SI0BIFT ID=5: corresponding to SD 0, BSL 512, SI 0//equivalent to SD 0/BSL 512/SI0

BIFT ID=6:corresponding to SD 0,BSL 512,SI 1//相当于SD 0/BSL 512/SI1BIFT ID=6: corresponding to SD 0, BSL 512, SI 1//equivalent to SD 0/BSL 512/SI1

BIFT ID=7:corresponding to SD 1,BSL 256,SI 0//相当于SD 1/BSL 256/SI0BIFT ID=7: corresponding to SD 1, BSL 256, SI 0//equivalent to SD 1/BSL 256/SI0

BIFT ID=8:corresponding to SD 1,BSL 256,SI 1//相当于SD 1/BSL 256/SI1BIFT ID=8: corresponding to SD 1, BSL 256, SI 1//equivalent to SD 1/BSL 256/SI1

BIFT ID=9:corresponding to SD 1,BSL 256,SI 2//相当于SD 1/BSL 256/SI2BIFT ID=9: corresponding to SD 1, BSL 256, SI 2//equivalent to SD 1/BSL 256/SI2

BIFT ID=10:corresponding to SD 1,BSL 256,SI 3//相当于SD 1/BSL 256/SI3BIFT ID=10: corresponding to SD 1, BSL 256, SI 3 // equivalent to SD 1/BSL 256/SI3

BIFT ID=11:corresponding to SD 1,BSL 512,SI 0//相当于SD 1/BSL 512/SI0BIFT ID=11: corresponding to SD 1, BSL 512, SI 0//equivalent to SD 1/BSL 512/SI0

BIFT ID=12:corresponding to SD 1,BSL 512,SI 1//相当于SD 1/BSL 512/SI1BIFT ID=12: corresponding to SD 1, BSL 512, SI 1//equivalent to SD 1/BSL 512/SI1

需要说明的是,BIER报文中的BIFT-ID字段可以标识SI,sub-domain和BSL。如果将报文发送到特定的BFR邻居(Neighbors,NBRs),则可以将BIFT-ID字段更改为与BFR NBRs通告的SI,sub-domain和BSL相同的值。它有如下作用:通过BSL获取BIER报文头的Bit String的长度;通过BSL及SI可知Bit String代表的BFR ID是属于1~256范围还是257~512范围或是其他范围;通过sub-domain即可找到所属的子域。It should be noted that the BIFT-ID field in the BIER message can identify SI, sub-domain and BSL. If the packet is to be sent to specific BFR neighbors (Neighbors, NBRs), the BIFT-ID field can be changed to the same value as the SI, sub-domain and BSL advertised by the BFR NBRs. It has the following functions: obtain the length of the Bit String of the BIER header through BSL; through BSL and SI, you can know whether the BFR ID represented by the Bit String belongs to the range of 1 to 256 or 257 to 512 or other ranges; The subdomain to which it belongs can be found.

(2)比特串(Bit String)字段(2) Bit String field

Bit String中的每个bit用来标识边缘BFR,例如bit string的低位(最右)的一个bit用来标识BFR ID=1的BFER。bit string中从右往左第2个Bit用来标识BFR ID=2的BFER。转发面转发所依据的转发表项则是根据报文中的bit string决定该报文要往哪几个BFER发送。当BIER域中的BFR在接收到了包含有BIER头时,根据BIER头中携带的bit string以及BIFT ID转发BIER报文。Each bit in the Bit String is used to identify the edge BFR, for example, the lower (rightmost) bit of the bit string is used to identify the BFER with BFR ID=1. The second bit from right to left in the bit string is used to identify the BFER with BFR ID=2. The forwarding entry on the forwarding plane is based on the bit string in the packet to determine which BFERs to send the packet to. When the BFR in the BIER field receives the BIER header, it forwards the BIER packet according to the bit string and BIFT ID carried in the BIER header.

需要说明的是,bit位的值为1表示报文要往该BFR ID所代表的BFER设备发送,bit位的值为0则表示报文不需要往该BFR ID所代表的BFER设备发送。以BIFT ID=2为例,BFR在接收到了BIER报文之后,可以根据该BIER头中的BIFT ID获取该BIER报文属于SD 0,BIER头中使用的BSL为256bit,属于集合1(包括BFR ID为257至512的256个边缘BFR的集合)。It should be noted that a bit value of 1 indicates that the packet is to be sent to the BFER device represented by the BFR ID, and a bit value of 0 indicates that the packet does not need to be sent to the BFER device represented by the BFR ID. Taking BIFT ID=2 as an example, after receiving the BIER message, the BFR can obtain that the BIER message belongs to SD 0 according to the BIFT ID in the BIER header, and the BSL used in the BIER header is 256 bits, belonging to set 1 (including BFR). A set of 256 edge BFRs with IDs 257 to 512).

(3)熵(entropy)字段(3) Entropy field

用来做负载分担。BIER转发可能做等价负载分担,此时负载分担必须为两个带有相同entropy和bit string的BIER报文选择相同路径。也就是说,属于一个组播流的多个报文的熵相同,不同的组播流的多个报文的熵不相同。当报文被转发时可以根据熵将不同的组播流分担到不同的链路上、而相同组播流的多个报文则走相同的链路。应理解,为了保证不同的entropy标识不同的组播流,在BFIR分配entropy时要求基于不同的组播流分配不同的熵标签,不能重复。used for load sharing. BIER forwarding may perform equal-cost load balancing. In this case, load balancing must select the same path for two BIER packets with the same entropy and bit string. That is to say, the entropy of multiple packets belonging to a multicast stream is the same, and the entropy of multiple packets of different multicast streams is different. When packets are forwarded, different multicast streams can be shared on different links according to entropy, and multiple packets of the same multicast stream go on the same link. It should be understood that, in order to ensure that different entropy identifies different multicast streams, when BFIR allocates entropy, it is required to allocate different entropy labels based on different multicast streams, which cannot be repeated.

(4)BFIR ID(4)BFIR ID

BFIR ID也可以理解为是BFIR的BFR ID。BFIR对用户报文封装BIER头,得到BIER报文,因此,BIER头中的BFIR ID字段需要填写该BFIR的在sub-domain下的BFR ID。BFIR ID可以标识组播流从哪个BFIR发出,以唯一确定一个组播流。BFIR ID can also be understood as the BFR ID of BFIR. The BFIR encapsulates the BIER header on the user message to obtain the BIER message. Therefore, the BFIR ID field in the BIER header needs to be filled with the BFR ID under the sub-domain of the BFIR. The BFIR ID can identify the BFIR from which the multicast stream is sent, so as to uniquely identify a multicast stream.

图3是另一种可能的BIER头格式的示意性框图。相比较图2所示的BIER头格式而言,图3所示的BIER头格式中不包含BIFT ID字段,而显示包含SD/BSL/SI三个字段。也就是说,图3所示的BIER头格式中直接包含SD/BSL/SI三个字段,而无需由BIFT ID字段映射出SD/BSL/SI取值。应理解,图3所示的BIER头格式中包含的字段与图2所示的BIER头格式中包含的字段类似,具体的有关图3所示的BIER头格式中各个字段的描述请参考图2中的说明,此处不再赘述。Figure 3 is a schematic block diagram of another possible BIER header format. Compared with the BIER header format shown in FIG. 2 , the BIER header format shown in FIG. 3 does not contain the BIFT ID field, but is shown to contain three fields of SD/BSL/SI. That is to say, the BIER header format shown in FIG. 3 directly includes three fields of SD/BSL/SI, without mapping SD/BSL/SI values from the BIFT ID field. It should be understood that the fields included in the BIER header format shown in FIG. 3 are similar to the fields included in the BIER header format shown in FIG. 2 , and for specific descriptions of the fields in the BIER header format shown in FIG. 3, please refer to FIG. 2 The descriptions in , will not be repeated here.

图4是一种BIER转发的场景示意图。如图4所示,设备A作为BIER域的入口(ingress)设备,负责对用户报文进行BIER封装得到BIER报文,对应于图1中的BFIR。设备D、设备E、设备F为BIER域的出口(egress)设备,负责从BIER报文中解封装出用户报文,对应于图1中的BFER。设备B、设备C属于BIER域的中间转发设备,对应于图1中BFR。FIG. 4 is a schematic diagram of a scenario of BIER forwarding. As shown in FIG. 4 , as an ingress device of the BIER domain, device A is responsible for performing BIER encapsulation on user messages to obtain BIER messages, which corresponds to the BFIR in FIG. 1 . Device D, device E, and device F are egress devices in the BIER domain, responsible for decapsulating user packets from BIER packets, corresponding to BFER in FIG. 1 . Device B and Device C belong to intermediate forwarding devices in the BIER domain, corresponding to the BFR in FIG. 1 .

作为示例,可以为BIER域内的每个边缘BFR分配一个唯一的BFR ID,例如,在图4中,为设备A、设备E、设备D、设备F配置的BFR ID分别为4、1、3、2。需要说明的是,本申请实施例中,“ID”和“id”有时可以混用,应当指出的是,在不强调其区别时,其所要表达的含义是一致的。其中,本申请中的BFR ID可以指图4中的id。As an example, a unique BFR ID can be assigned to each edge BFR in the BIER domain. For example, in Figure 4, the BFR IDs configured for device A, device E, device D, and device F are 2. It should be noted that, in the embodiments of the present application, "ID" and "id" may sometimes be used interchangeably. It should be noted that, when the difference is not emphasized, the meanings to be expressed are the same. Wherein, the BFR ID in this application may refer to the id in FIG. 4 .

操作管理维护(operations、administration and maintenance,OAM)是一种为网络提供故障检测、故障申告、故障定位以及故障修复的网络管理技术。在线操作管理维护(in-situ operations、administration and maintenance,IOAM)也可以称为带内OAM,负责随流对网络的性能参数进行检测。IOAM可以包括IOAM直接导出(IOAM directexporting,IOAM-DEX)模式、IOAM边缘到边缘(IOAM Edge-to-Edge)、IOAM传输证明(IOAMProof of Transit)和IOAM追随(IOAM-trace)模式。以IOAM-DEX模式为例,图4中的设备A、设备B、设备C、设备D、设备E、设备F(为了便于描述,也可以称为设备A-设备F)可以是IOAM-DEX转发节点,每个IOAM-DEX转发节点需要根据IOAM指令获取到IOAM信息后,分别上报至控制器。应理解,每个IOAM-DEX转发节点上报的IOAM信息可以包括每个IOAM-DEX转发节点根据IOAM-DEX指令获取到的IOAM信息。Operations, administration and maintenance (OAM) is a network management technology that provides fault detection, fault reporting, fault location and fault repair for the network. Online operation management and maintenance (in-situ operations, administration and maintenance, IOAM) may also be called in-band OAM, which is responsible for detecting network performance parameters along with the flow. IOAM can include IOAM direct exporting (IOAM-DEX) mode, IOAM Edge-to-Edge (IOAM Edge-to-Edge), IOAM Proof of Transit (IOAM Proof of Transit), and IOAM-trace (IOAM-trace) mode. Taking the IOAM-DEX mode as an example, device A, device B, device C, device D, device E, and device F in Figure 4 (for ease of description, may also be referred to as device A-device F) can be IOAM-DEX forwarding Each IOAM-DEX forwarding node needs to obtain the IOAM information according to the IOAM command and report it to the controller respectively. It should be understood that the IOAM information reported by each IOAM-DEX forwarding node may include the IOAM information obtained by each IOAM-DEX forwarding node according to the IOAM-DEX instruction.

相关的技术方案中,控制器通过IOAM信息中的流标识(flow identifier,flowID),将多个IOAM信息与特定的组播流关联。该方案中仅可以将IOAM信息与特定的组播流关联,而无法根据IOAM信息确定转发组播流的网络设备及其所属的SD/BSL/SI。在组播流发生丢包等故障时,该控制器无法定位发生故障的设备及其所属的SD/BSL/SI。In a related technical solution, the controller associates a plurality of IOAM information with a specific multicast flow through a flow identifier (flow identifier, flowID) in the IOAM information. In this solution, only the IOAM information can be associated with a specific multicast stream, and the network device that forwards the multicast stream and the SD/BSL/SI to which it belongs cannot be determined according to the IOAM information. When a fault such as packet loss occurs in the multicast stream, the controller cannot locate the faulty device and its SD/BSL/SI.

有鉴于此,本申请实施例提供了一种数据处理的方法,该方法能够使得控制器将多个IOAM-DEX转发节点分别上报的多个IOAM信息关联到一个组播流,并且该控制器还可以根据多个IOAM信息确定转发该组播流的网络设备及其所属的set和sub-domain,在组播流发生丢包等故障时,可以对故障设备进行set和sub-domain定位。In view of this, an embodiment of the present application provides a data processing method, the method enables the controller to associate multiple IOAM information respectively reported by multiple IOAM-DEX forwarding nodes with one multicast stream, and the controller further The network device that forwards the multicast stream and its set and sub-domain can be determined according to multiple IOAM information. When a fault such as packet loss occurs in the multicast stream, the set and sub-domain of the faulty device can be located.

下面结合图5,对本申请实施例提供的一种数据处理的方法进行详细描述。A data processing method provided by an embodiment of the present application will be described in detail below with reference to FIG. 5 .

图5是本申请实施例提供的一种数据处理的方法的示意性流程图。如图5所示,该方法可以包括步骤510-520,下面分别对步骤510-520进行详细描述。FIG. 5 is a schematic flowchart of a data processing method provided by an embodiment of the present application. As shown in FIG. 5, the method may include steps 510-520, and the steps 510-520 will be described in detail below respectively.

步骤510:控制器接收多个IOAM信息。Step 510: The controller receives multiple IOAM messages.

以图4所示的场景为例,设备A-设备F向控制器分别上报IOAM信息,每个设备上报的IOAM信息中可以包括但不限于:BFIR ID、BIFT ID以及entropy值。具体的,作为示例,每个设备在获取到BIER报文后,可以根据BIER报文中的IOAM-DEX指令头向控制器上报所述IOAM信息。具体的有关IOAM-DEX指令头的格式,请参见图6中的描述,此处暂不详述。Taking the scenario shown in FIG. 4 as an example, devices A-device F report IOAM information to the controller respectively, and the IOAM information reported by each device may include, but is not limited to: BFIR ID, BIFT ID, and entropy value. Specifically, as an example, after acquiring the BIER message, each device may report the IOAM information to the controller according to the IOAM-DEX command header in the BIER message. For the specific format of the IOAM-DEX command header, please refer to the description in FIG. 6 , which will not be described in detail here.

可选地,在一些实施例中,每个设备上报的IOAM信息中还可以包括向所述控制器上报IOAM信息的当前设备的标识,以及所述当前设备的下一跳邻居设备的标识。作为示例,该标识可以是设备的地址。以当前设备的标识为例,该标识可以是所述当前设备的一个IPv4地址或IPv6地址。Optionally, in some embodiments, the IOAM information reported by each device may further include the identifier of the current device that reports the IOAM information to the controller, and the identifier of the next-hop neighbor device of the current device. As an example, the identification may be the address of the device. Taking the identifier of the current device as an example, the identifier may be an IPv4 address or an IPv6 address of the current device.

可选地,在一些实施例中,每个设备上报的IOAM信息中还可以包括IOAM跟踪数据(也可以称为IOAM测量数据)。该IOAM跟踪数据可以包括向所述控制器上报IOAM信息的设备采集到的一些相应的网络参数。具体的,作为示例,该网络参数可以包括但不限于以下中的一种或多种的组合:节点的转发时延、节点的队列长度、报文到达节点的时间戳、报文离开节点的时间戳、节点接收报文的入接口ID、节点发送报文的出接口ID等。Optionally, in some embodiments, the IOAM information reported by each device may further include IOAM tracking data (also referred to as IOAM measurement data). The IOAM tracking data may include some corresponding network parameters collected by the device that reports the IOAM information to the controller. Specifically, as an example, the network parameter may include, but is not limited to, a combination of one or more of the following: forwarding delay of the node, queue length of the node, time stamp of the packet arriving at the node, time of the packet leaving the node stamp, the ID of the inbound interface that the node receives the packet, and the ID of the outbound interface that the node sends the packet.

步骤520:控制器根据所述多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值将所述多个IOAM信息关联到第一组播流。Step 520: The controller associates the plurality of IOAM information with the first multicast stream according to each BFIR ID, bit index forwarding table identifier BIFT ID and entropy value in the plurality of IOAM information.

控制器在获取到多个设备上报的多个IOAM信息后,可以根据多个IOAM信息中的每个BFIR ID、BIFT ID和entropy值将所述多个IOAM信息关联到第一组播流。具体的,作为示例,控制器根据多个IOAM信息中每个BFIR ID相同、每个BIFT ID相同、每个entropy值相同,将所述多个IOAM信息关联到同一个组播流。After acquiring the multiple IOAM information reported by the multiple devices, the controller may associate the multiple IOAM information with the first multicast stream according to each BFIR ID, BIFT ID and entropy value in the multiple IOAM information. Specifically, as an example, the controller associates the multiple IOAM information with the same multicast stream according to the same BFIR ID, the same BIFT ID, and the same entropy value in the multiple IOAM information.

上述技术方案中,控制器可以将多个设备分别上报的多个IOAM信息关联到一个组播流。并且,该控制器还可以根据IOAM信息中的BFIR ID确定该组播流所属的sub-domain,BSL以及SI。这样,控制器就可以确定转发该组播流的网络设备(例如,BIER域中转发该组播流的入口节点和出口设备),在组播流发生丢包等故障时,可以对故障进行定位。In the above technical solution, the controller may associate multiple IOAM information respectively reported by multiple devices to one multicast stream. In addition, the controller can also determine the sub-domain, BSL and SI to which the multicast stream belongs according to the BFIR ID in the IOAM information. In this way, the controller can determine the network device that forwards the multicast stream (for example, the ingress node and egress device that forwards the multicast stream in the BIER domain), and can locate the fault when the multicast stream has a packet loss or other fault. .

可选地,在一些实施例中,控制器还可以根据IOAM信息中的当前设备的标识以及所述当前设备的下一跳邻居设备的标识,还原所述组播流的转发路径。也就是说,控制器可以在将上述多个IOAM信息关联到一个组播流的基础上,还可以确定转发该组播流的网络设备,从而将多个IOAM信息与转发所述组播流的网络设备关联起来。这样,在组播流发生丢包等故障时,可以确定发生故障的设备,从而对故障进行准确定位。Optionally, in some embodiments, the controller may further restore the forwarding path of the multicast stream according to the identifier of the current device in the IOAM information and the identifier of the next-hop neighbor device of the current device. That is to say, the controller can determine the network device forwarding the multicast stream on the basis of associating the above-mentioned multiple IOAM information with one multicast stream, so as to associate the multiple IOAM information with the one that forwards the multicast stream. Network devices are associated. In this way, when a fault such as packet loss occurs in the multicast stream, the faulty device can be determined, thereby accurately locating the fault.

可选地,在一些实施例中,控制器还可以根据IOAM信息中的IOAM跟踪数据,得到所述组播流的入口设备到出口设备之间的网络性能。Optionally, in some embodiments, the controller may further obtain the network performance between the ingress device and the egress device of the multicast stream according to the IOAM tracking data in the IOAM information.

下面以图4所示的转发场景为例,结合图6,对本申请实施例提供的一种数据处理的方法的具体实现方式进行详细描述。应理解,图6的例子仅仅是为了帮助本领域技术人员理解本申请实施例,而非要将申请实施例限制于所示例的具体数值或具体场景。本领域技术人员根据下面所给出的图6的例子,显然可以进行各种等价的修改或变化,这样的修改和变化也落入本申请实施例的范围内。The following takes the forwarding scenario shown in FIG. 4 as an example, and in conjunction with FIG. 6 , a specific implementation manner of a data processing method provided by an embodiment of the present application will be described in detail. It should be understood that the example in FIG. 6 is only for helping those skilled in the art to understand the embodiments of the present application, and is not intended to limit the embodiments of the present application to specific numerical values or specific scenarios exemplified. Those skilled in the art can obviously make various equivalent modifications or changes according to the example of FIG. 6 given below, and such modifications and changes also fall within the scope of the embodiments of the present application.

图6是本申请实施例提供的另一种数据处理的方法的示意性流程图。参见图6,该方法可以包括步骤610-670,下面分别对步骤610-670进行详细描述。FIG. 6 is a schematic flowchart of another data processing method provided by an embodiment of the present application. Referring to FIG. 6 , the method may include steps 610-670, and the steps 610-670 will be described in detail below, respectively.

应理解,上文中的第一网络设备可以是图6中的设备A,或设备B,或设备C,或设备D,或设备E,或设备F中的任意一个。It should be understood that the above-mentioned first network device may be any one of device A, or device B, or device C, or device D, or device E, or device F in FIG. 6 .

步骤610:设备A接收到用户报文后,根据所述用户报文获得BIER报文。Step 610: After receiving the user message, device A obtains a BIER message according to the user message.

作为示例,设备A在接收用户报文之前,可以建立BIFT(例如,ID=1的BIFT),该BIFT用于指导设备A对BIER报文的转发。举例说明,下面对设备A建立BIFT的一种方法进行详细描述。As an example, before receiving the user message, device A may establish a BIFT (for example, a BIFT with ID=1), where the BIFT is used to instruct device A to forward the BIER message. By way of example, a method for establishing BIFT by device A is described in detail below.

作为示例,BIER域中的各个边缘BFR可以将分配的BFR ID通过内部网关协议(interior gateway protocol,IGP)或者外部网关协议(border gateway protocol,BGP)在BIER域中泛洪,以便于BIER域内的其他边缘BFR可以根据泛洪的信息建立BIFT。例如,对于设备A而言,其可以通过泛洪的方式获取设备E的BFR ID为1,设备F的BFR ID为2,设备D的BFR ID为3。如果设备A需要将BIER报文分别发送至BFR ID为1的设备E、BFR ID为2的设备F、BFR ID为3的设备D,且设备A到设备E、设备F、设备D的下一跳设备均为设备B,设备A建立的BIFT为:邻居(neighbor,Nbr)=B,转发位掩码(forwarding bit mask,FBM)=0111。其中,Nbr=B表示设备A的邻居为设备B,FBM=0111表示当有BIER报文的bit string从右往左第1个bit位、第2个bit位、第3个bit位中任意一个为1时,上述BIFT用于指导设备A将该BIER报文发送给设备B。As an example, each edge BFR in the BIER domain may flood the allocated BFR IDs in the BIER domain through an interior gateway protocol (IGP) or an exterior gateway protocol (BGP), so as to facilitate the Other edge BFRs can establish BIFT based on the flooded information. For example, for device A, it can obtain by flooding that the BFR ID of device E is 1, the BFR ID of device F is 2, and the BFR ID of device D is 3. If device A needs to send BIER packets to device E with BFR ID 1, device F with BFR ID 2, and device D with BFR ID 3, and device A to the next device of device E, device F, and device D The hop devices are all device B, and the BIFT established by device A is: neighbor (neighbor, Nbr)=B, forwarding bit mask (forwarding bit mask, FBM)=0111. Among them, Nbr=B indicates that the neighbor of device A is device B, and FBM=0111 indicates that when there is a bit string of a BIER message, any one of the first bit, the second bit, and the third bit from right to left When it is 1, the above BIFT is used to instruct device A to send the BIER message to device B.

设备A作为BIER域的入口(ingress)设备,负责对用户报文进行BIER封装得到BIER报文。本申请实施例中,设备A可以对用户报文封装BIER头,并将IOAM-DEX指令头插入该BIER头中。也就是说,设备A获得的BIER报文可以包括:BIER头、IOAM-DEX指令头以及用户报文。Device A, as the ingress device of the BIER domain, is responsible for performing BIER encapsulation on user packets to obtain BIER packets. In the embodiment of the present application, the device A may encapsulate the BIER header on the user message, and insert the IOAM-DEX command header into the BIER header. That is, the BIER message obtained by device A may include: a BIER header, an IOAM-DEX command header, and a user message.

上述BIER头的格式可以参见上文中对图2或图3中的描述,此处不再赘述。作为示例,设备A封装的BIER报文中,BIER头的bit string字段标注了该BIER报文的所有目的设备。假设用户报文的接收者分别为BFR ID为3的目的设备为D、BFR ID为2的目的设备为F、BFR ID为1的目的设备为E,且分别向设备D、设备E、设备F发送的多个报文属于第一组播流。举例说明,设备A封装的BIER头中的bit string字段可以为0111;BIER头的BFIR ID字段可以为设备A的BFR ID(例如,设备A的BFR ID为4);BIER头的熵(entropy)字段可以为1,其用于标识上述第一组播流;BIER头的BIFT ID字段的取值为1。For the format of the above-mentioned BIER header, reference may be made to the description in FIG. 2 or FIG. 3 above, which will not be repeated here. As an example, in the BIER packet encapsulated by device A, the bit string field of the BIER header indicates all destination devices of the BIER packet. Assume that the recipients of the user packets are the destination device D with BFR ID 3, the destination device F with BFR ID 2, and the destination device E with BFR ID 1, respectively, and send the messages to device D, device E, and device F respectively. The multiple sent packets belong to the first multicast stream. For example, the bit string field in the BIER header encapsulated by device A may be 0111; the BFIR ID field of the BIER header may be the BFR ID of device A (for example, the BFR ID of device A is 4); the entropy of the BIER header The field may be 1, which is used to identify the above-mentioned first multicast stream; the value of the BIFT ID field of the BIER header is 1.

本申请实施例提供的IOAM-DEX指令头的格式可以参见图7。如图7所示,该IOAM指令头中可以包括但不限于:IOAM-trace-type字段,Flow ID字段,当前节点的标识字段,下一跳节点的标识字段等。其中,Flow ID字段用于指示一个组播流的ID。当前节点的标识字段用于指示获取当前上报IOAM信息的节点的标识,作为示例,当前上报IOAM信息的节点标识可以是该节点的地址(也可以表示为Local BFR-prefix),例如,该节点上的一个IPv4地址或IPv6地址。下一跳节点的标识字段用于指示获取当前上报IOAM信息的节点的下一跳邻居的节点标识。作为示例,当前上报IOAM信息的节点的下一跳邻居的节点标识可以是该下一跳邻居的地址(也可以表示为Next BFR-prefix),例如,该下一跳邻居上的一个IPv4地址或IPv6地址。IOAM-trace-type字段用于指示节点采集相应的网络参数(也可以称为IOAM跟踪数据或IOAM测量值),作为示例,该IOAM-trace-type字段的某个bit置1则表示需要采集相应的网络参数。例如,该节点需要采集的网络参数可以包括但不限于以下中的一种或多种的组合:节点的转发时延、节点的队列长度、报文到达节点的时间戳、报文离开节点的时间戳、节点接收报文的入接口ID、节点发送报文的出接口ID等。For the format of the IOAM-DEX instruction header provided by the embodiment of the present application, reference may be made to FIG. 7 . As shown in FIG. 7 , the IOAM instruction header may include, but is not limited to: an IOAM-trace-type field, a Flow ID field, an identification field of the current node, an identification field of a next-hop node, and the like. The Flow ID field is used to indicate the ID of a multicast flow. The identifier field of the current node is used to indicate the identifier of the node that currently reports IOAM information. As an example, the identifier of the node that currently reports IOAM information can be the address of the node (it can also be expressed as Local BFR-prefix). For example, on the node an IPv4 address or an IPv6 address. The identifier field of the next-hop node is used to indicate the node identifier of the next-hop neighbor of the node that currently reports the IOAM information. As an example, the node identifier of the next-hop neighbor of the node that currently reports IOAM information may be the address of the next-hop neighbor (which may also be expressed as Next BFR-prefix), for example, an IPv4 address on the next-hop neighbor or IPv6 address. The IOAM-trace-type field is used to instruct the node to collect the corresponding network parameters (also called IOAM trace data or IOAM measurement values). network parameters. For example, the network parameters that the node needs to collect may include, but are not limited to, one or a combination of the following: the forwarding delay of the node, the queue length of the node, the time stamp of the packet arriving at the node, and the time when the packet leaves the node stamp, the ID of the inbound interface that the node receives the packet, and the ID of the outbound interface that the node sends the packet.

应理解,下一跳节点的标识字段用于指示获取当前上报IOAM信息的节点的下一跳邻居的节点标识,下一跳邻居节点可以是一个设备,或者还可以是多个设备,本申请对此不做具体限定。如果下一跳邻居节点为多个,可以将多个下一跳邻居节点的标识均上报给控制器。It should be understood that the identification field of the next-hop node is used to indicate the node identification of the next-hop neighbor of the node that currently reports the IOAM information. The next-hop neighbor node may be one device, or may also be multiple devices. This is not specifically limited. If there are multiple next-hop neighbor nodes, the identifiers of the multiple next-hop neighbor nodes can be reported to the controller.

可选地,上述当前上报IOAM信息的节点标识和下一跳邻居的节点标识也可以通过IOAM-trace-type字段来指示记录。例如,可以对IOAM-trace-type字段进行扩展,通过IOAM-trace-type字段的一个bit来指示记录当前上报IOAM信息的节点标识以及下一跳邻居的节点标识。Optionally, the above-mentioned node identifier that currently reports the IOAM information and the node identifier of the next-hop neighbor may also indicate records through the IOAM-trace-type field. For example, the IOAM-trace-type field may be extended, and a bit of the IOAM-trace-type field may be used to indicate the identifier of the node that records the currently reported IOAM information and the identifier of the next-hop neighbor node.

步骤613:设备A根据BIER报文中的IOAM-DEX指令头获取IOAM信息。Step 613: Device A obtains IOAM information according to the IOAM-DEX command header in the BIER message.

设备A可以根据IOAM-DEX指令头获取IOAM信息据。该IOAM信息中可以包括但不限于:根据IOAM-DEX指令头的IOAM-trace-type字段采集到的相应的网络参数,Local BFR-prefix字段(例如,该字段为设备A的BFR-prefix),Next BFR-prefix字段(例如,该字段为设备B的BFR-prefix),BIER头中的BFIR ID(例如,设备A的BFR ID,取值为4)、BIFT ID(例如,取值为1)、entropy(例如,取值为1)等。Device A can obtain IOAM information data according to the IOAM-DEX command header. The IOAM information may include but is not limited to: the corresponding network parameters collected according to the IOAM-trace-type field of the IOAM-DEX command header, the Local BFR-prefix field (for example, this field is the BFR-prefix of device A), Next BFR-prefix field (for example, this field is the BFR-prefix of device B), BFIR ID in the BIER header (for example, the BFR ID of device A, the value is 4), BIFT ID (for example, the value is 1) , entropy (for example, the value is 1), etc.

步骤615:设备A向控制器发送所述IOAM信息。Step 615: Device A sends the IOAM information to the controller.

设备A可以在获取IOAM信息后,将该IOAM信息上送给控制器。Device A may send the IOAM information to the controller after acquiring the IOAM information.

步骤617:设备A向设备B发送BIER报文。Step 617: Device A sends a BIER message to device B.

设备A还可以根据BIER头的bit string字段为0111以及上述ID=1的BIFT,将所述BIER报文发送给设备A的邻居(设备B)。Device A may also send the BIER message to the neighbor of device A (device B) according to the bit string field of the BIER header as 0111 and the above BIFT with ID=1.

步骤620:设备B接收到BIER报文后,根据BIER报文中的IOAM-DEX指令头获取IOAM信息。Step 620: After receiving the BIER message, the device B obtains the IOAM information according to the IOAM-DEX command header in the BIER message.

作为示例,设备B在接收BIER报文之前,可以建立BIFT(例如,ID=1的BIFT),该BIFT用于指导设备B对BIER报文的转发。作为示例,设备B可以通过泛洪的方式设备E的BFRID为1,设备F的BFR ID为2,设备D的BFR ID为3。如果设备B需要将BIER报文分别发送至BFRID为1的设备E、BFR ID为2的设备F、BFR ID为3的设备D,且设备B到设备E、设备F的下一跳设备为设备C,到设备D的下一跳设备为设备D。因此,设备B建立的BIFT为:Nbr=C,FBM=0011;Nbr=D,FBM=0100。其中,表项<Nbr=C,FBM=0011>中的Nbr=C表示设备B的邻居为设备C,FBM=0011表示当有BIER报文的bit string从右往左第1个bit位、第2个bit位中任意一个为1时,上述BIFT用于指导设备B将该BIER报文发送给设备C。表项<Nbr=D,FBM=0100>中的Nbr=D表示设备B的邻居为设备D,FBM=0100表示当有BIER报文的bit string从右往左第3个bit位为1时,该BIFT用于指导设备B将该BIER报文发送给设备D。As an example, before receiving the BIER message, device B may establish a BIFT (for example, a BIFT with ID=1), where the BIFT is used to instruct device B to forward the BIER message. As an example, the BFR ID of the device E can be set to 1, the BFR ID of the device F can be set to 2, and the BFR ID of the device D can be set to 3 through flooding. If device B needs to send BIER packets to device E with BFRID 1, device F with BFR ID 2, and device D with BFR ID 3, and the next hop device from device B to device E and device F is the device C, the next hop device to device D is device D. Therefore, the BIFT established by device B is: Nbr=C, FBM=0011; Nbr=D, FBM=0100. Among them, Nbr=C in the entry <Nbr=C, FBM=0011> indicates that the neighbor of device B is device C, and FBM=0011 indicates that when there is a bit string of a BIER packet, the first bit, the first bit from the right and the left When any one of the two bits is 1, the above BIFT is used to instruct device B to send the BIER message to device C. Nbr=D in the entry <Nbr=D, FBM=0100> indicates that the neighbor of device B is device D, and FBM=0100 indicates that when the third bit of the bit string of the BIER message from right to left is 1, The BIFT is used to instruct device B to send the BIER message to device D.

设备B在接收到设备A发送的BIER报文后,可以根据BIER报文中的IOAM-DEX指令头获取IOAM信息。该IOAM信息中可以包括但不限于:根据IOAM-DEX指令头的IOAM-trace-type字段采集到的相应的网络参数,Local BFR-prefix字段(例如,该字段为设备B的BFR-prefix),Next BFR-prefix字段(例如,该字段为设备C和设备D的BFR-prefix),BIER头中的BFIR ID(例如,设备A的BFR ID,取值为4)、BIFT ID(例如,取值为1)、entropy(例如,取值为1)等。应理解,有关网络参数的描述请参见上文中的说明,此处暂不详述。After receiving the BIER message sent by device A, device B can obtain IOAM information according to the IOAM-DEX command header in the BIER message. The IOAM information may include, but is not limited to: the corresponding network parameters collected according to the IOAM-trace-type field of the IOAM-DEX command header, the Local BFR-prefix field (for example, this field is the BFR-prefix of device B), Next BFR-prefix field (for example, this field is the BFR-prefix of device C and device D), BFIR ID in the BIER header (for example, the BFR ID of device A, the value is 4), BIFT ID (for example, the value is 1), entropy (for example, the value is 1), etc. It should be understood that, for the description of the network parameters, please refer to the above description, which will not be described in detail here.

步骤623:设备B向控制器发送所述IOAM信息。Step 623: Device B sends the IOAM information to the controller.

设备B可以在获取IOAM信息后,将该IOAM信息上送给控制器。After acquiring the IOAM information, device B can send the IOAM information to the controller.

步骤625:设备B向设备C和设备D发送BIER报文。Step 625: Device B sends a BIER message to device C and device D.

设备B还可以根据BIER头的bit string字段为0111以及上述ID=1的BIFT,将所述BIER报文分别发送给设备B的邻居(设备C和设备D)。具体的,一个示例,设备B将该BIER报文往设备C发送时,可以将BIER头的bit string(0111)以及BIFT表项里Nbr=C对应的FBM字段(0011)做AND操作,本申请实施例中AND的结果是0011。因此,设备B可以将BIER报文的BIER头中的bit string修改为0011,并将该BIER报文发送至设备C。另一个示例,设备B将该BIER报文往设备D发送时,可以将BIER头的bit string(0111)以及BIFT表项里Nbr=D对应的FBM字段(0100)做AND操作,本申请实施例中AND的结果是0100。因此,设备B可以将BIER报文的BIER头中的bit string修改为0100,并将该BIER报文发送至设备D。Device B may also send the BIER message to the neighbors of device B (device C and device D) according to the bit string field of the BIER header as 0111 and the above BIFT with ID=1. Specifically, as an example, when device B sends the BIER message to device C, it can perform AND operation on the bit string (0111) of the BIER header and the FBM field (0011) corresponding to Nbr=C in the BIFT entry. The result of AND in the example is 0011. Therefore, device B can modify the bit string in the BIER header of the BIER packet to 0011, and send the BIER packet to device C. In another example, when device B sends the BIER message to device D, it can perform an AND operation on the bit string (0111) of the BIER header and the FBM field (0100) corresponding to Nbr=D in the BIFT entry. The result of the AND is 0100. Therefore, device B can modify the bit string in the BIER header of the BIER packet to 0100, and send the BIER packet to device D.

步骤630:设备C接收到BIER报文后,根据BIER报文中的IOAM-DEX指令头获取IOAM信息。Step 630: After receiving the BIER message, the device C obtains the IOAM information according to the IOAM-DEX command header in the BIER message.

作为示例,设备C在接收BIER报文之前,可以建立BIFT(例如,ID=1的BIFT),该BIFT用于指导设备C对BIER报文的转发。作为示例,设备C可以通过泛洪的方式设备E的BFRID为1,设备F的BFR ID为2,设备D的BFR ID为3。如果设备C需要将BIER报文分别发送至为1的设备E、BFR ID为2的设备F、BFR ID为3的设备D,且设备C到设备E的下一跳设备为设备E、到设备F的下一跳设备为设备F、设备D的下一跳设备为设备D。因此,设备C建立的BIFT为:Nbr=E,FBM=0001;Nbr=F,FBM=0010;Nbr=D,FBM=0100。其中,表项<Nbr=E,FBM=0001>中的Nbr=E表示设备C的邻居为设备E,FBM=0001表示当有BIER报文的bit string从右往左第1个bit位为1时,该BIFT用于指导设备C将该BIER报文发送给设备E。表项<Nbr=F,FBM=0010>中的Nbr=F设备C的邻居为设备F,FBM=0010表示当有BIER报文的bit string从右往左第2个bit位为1时,该BIFT用于指导设备C将该BIER报文发送给设备F。表项<Nbr=D,FBM=0100>中的Nbr=D表示设备C的邻居为设备D,FBM=0100表示当有BIER报文的bitstring从右往左第3个bit位为1时,该BIFT用于指导设备C将该BIER报文发送给设备D。As an example, before receiving the BIER message, device C may establish a BIFT (for example, a BIFT with ID=1), where the BIFT is used to instruct device C to forward the BIER message. As an example, the BFR ID of the device E can be set to 1, the BFR ID of the device F can be set to 2, and the BFR ID of the device D can be set to 3 through flooding. If device C needs to send BIER packets to device E with a BFR ID of 1, device F with a BFR ID of 2, and device D with a BFR ID of 3, and the next hop from device C to device E is device E, to device The next-hop device of F is device F, and the next-hop device of device D is device D. Therefore, the BIFT established by device C is: Nbr=E, FBM=0001; Nbr=F, FBM=0010; Nbr=D, FBM=0100. Among them, Nbr=E in the entry <Nbr=E, FBM=0001> indicates that the neighbor of device C is device E, and FBM=0001 indicates that when there is a bit string of a BIER packet, the first bit from right to left is 1 , the BIFT is used to instruct device C to send the BIER message to device E. Nbr=F in the entry <Nbr=F, FBM=0010>, the neighbor of device C is device F, and FBM=0010 means that when the second bit from right to left of the bit string of the BIER packet is 1, the BIFT is used to instruct device C to send the BIER message to device F. Nbr=D in the entry <Nbr=D, FBM=0100> indicates that the neighbor of device C is device D, and FBM=0100 indicates that when the third bit from right to left of the bitstring of the BIER packet is 1, the BIFT is used to instruct device C to send the BIER message to device D.

设备C在接收到设备B发送的BIER报文后,可以根据BIER报文中的IOAM-DEX指令头获取IOAM信息。该IOAM信息中可以包括但不限于:根据IOAM-DEX指令头的IOAM-trace-type字段采集到的相应的网络参数,Local BFR-prefix字段(例如,该字段为设备C的BFR-prefix),Next BFR-prefix字段(例如,该字段为设备E和设备F的BFR-prefix),BIER头中的BFIR ID(例如,设备A的BFR ID,取值为4)、BIFT ID(例如,取值为1)、entropy(例如,取值为1)等。应理解,有关网络参数的描述请参见上文中的说明,此处暂不详述。After receiving the BIER message sent by device B, device C can obtain IOAM information according to the IOAM-DEX command header in the BIER message. The IOAM information may include, but is not limited to: the corresponding network parameters collected according to the IOAM-trace-type field of the IOAM-DEX command header, the Local BFR-prefix field (for example, this field is the BFR-prefix of device C), Next BFR-prefix field (for example, this field is the BFR-prefix of device E and device F), BFIR ID in the BIER header (for example, the BFR ID of device A, the value is 4), BIFT ID (for example, the value is 1), entropy (for example, the value is 1), etc. It should be understood that, for the description of the network parameters, please refer to the above description, which will not be described in detail here.

步骤633:设备C向控制器发送所述IOAM信息。Step 633: Device C sends the IOAM information to the controller.

设备C可以在获取IOAM信息后,将该IOAM信息上送给控制器。After acquiring the IOAM information, the device C can send the IOAM information to the controller.

步骤635:设备C向设备E和设备F发送BIER报文。Step 635: Device C sends a BIER message to device E and device F.

设备C还可以根据BIER头的bit string字段为0011以及上述ID=1BIFT,将所述BIER报文分别发送给设备C的邻居(设备E和设备F)。具体的,一个示例,设备C将该BIER报文往设备E发送时,可以将BIER头的bit string(0011)以及BIFT表项里Nbr=E对应的FBM字段(0001)做AND操作,本申请实施例中AND的结果是0001。因此,设备C可以将BIER报文的BIER头中的bit string修改为0001,并将该BIER报文发送至设备E。另一个示例,设备C将该BIER报文往设备F发送时,可以将BIER头的bit string(0011)以及BIFT表项里Nbr=F对应的FBM字段(0010)做AND操作,本申请实施例中AND的结果是0010。因此,设备C可以将BIER报文的BIER头中的bit string修改为0010,并将该BIER报文发送至设备F。Device C may also send the BIER message to the neighbors (device E and device F) of device C respectively according to the bit string field of the BIER header being 0011 and the above ID=1BIFT. Specifically, as an example, when device C sends the BIER message to device E, it can perform AND operation on the bit string (0011) of the BIER header and the FBM field (0001) corresponding to Nbr=E in the BIFT entry. The result of AND in the example is 0001. Therefore, device C can modify the bit string in the BIER header of the BIER packet to 0001, and send the BIER packet to device E. In another example, when device C sends the BIER message to device F, it can perform an AND operation on the bit string (0011) of the BIER header and the FBM field (0010) corresponding to Nbr=F in the BIFT entry. The result of AND is 0010. Therefore, device C can modify the bit string in the BIER header of the BIER packet to 0010, and send the BIER packet to device F.

步骤640:设备D接收到BIER报文后,根据BIER报文中的IOAM-DEX指令头获取IOAM信息。Step 640: After receiving the BIER message, the device D obtains the IOAM information according to the IOAM-DEX command header in the BIER message.

作为示例,设备D在接收BIER报文之前,可以建立BIFT(例如,ID=1的BIFT)。作为示例,设备D的BFR ID为3,设备D建立的BIFT为:Nbr=*D*,FBM=0100。其中,标识*表示自己,Nbr=*D*表示设备D的下一跳设备为自己,FBM=0100表示当有BIER报文的bit string从右往左第3个bit位为1时,上述BIFT用于指导设备D将该BIER报文发送给自己。例如,设备D会对BIER报文进行解封装。As an example, device D may establish a BIFT (eg, BIFT with ID=1) before receiving the BIER message. As an example, the BFR ID of device D is 3, and the BIFT established by device D is: Nbr=*D*, FBM=0100. Among them, the identifier * means itself, Nbr=*D* means that the next hop device of device D is itself, and FBM=0100 means that when the third bit of the bit string of the BIER message from right to left is 1, the above BIFT It is used to instruct device D to send the BIER message to itself. For example, device D decapsulates BIER packets.

设备D在接收到设备B发送的BIER报文后,可以根据BIER报文中的IOAM-DEX指令头获取IOAM信息。该IOAM信息中可以包括但不限于:根据IOAM-DEX指令头的IOAM-trace-type字段采集到的相应的网络参数,Local BFR-prefix字段(例如,该字段为设备D的BFR-prefix),Next BFR-prefix字段(例如,该字段为设备D的BFR-prefix),BIER头中的BFIR ID(例如,设备A的BFR ID,取值为4)、BIFT ID(例如,取值为1)、entropy(例如,取值为1)等。应理解,有关网络参数的描述请参见上文中的说明,此处暂不详述。After receiving the BIER message sent by device B, device D can obtain IOAM information according to the IOAM-DEX command header in the BIER message. The IOAM information may include, but is not limited to: the corresponding network parameters collected according to the IOAM-trace-type field of the IOAM-DEX command header, the Local BFR-prefix field (for example, this field is the BFR-prefix of device D), Next BFR-prefix field (for example, this field is the BFR-prefix of device D), BFIR ID in the BIER header (for example, the BFR ID of device A, the value is 4), BIFT ID (for example, the value is 1) , entropy (for example, the value is 1), etc. It should be understood that, for the description of the network parameters, please refer to the above description, which will not be described in detail here.

步骤643:设备D向控制器发送所述IOAM信息。Step 643: Device D sends the IOAM information to the controller.

设备D可以在获取IOAM信息后,将该IOAM信息上送给控制器。Device D may send the IOAM information to the controller after acquiring the IOAM information.

步骤645:设备D解封装BIER报文。Step 645: Device D decapsulates the BIER packet.

设备D还可以根据BIER头的bit string字段为0100以及上述ID=1的BIFT表项里Nbr=*D*对应的FBM字段(0100)确定自己为BIER域的出口(egress)设备,设备D对BIER报文进行解封装,得到内层的用户报文。具体的,作为示例,设备D可以移除BIER报文中的BIER头和IOAM-DEX指令头,得到内层的用户报文,并对该用户报文进行转发。Device D can also determine that it is an egress device of the BIER domain according to the bit string field of the BIER header as 0100 and the FBM field (0100) corresponding to Nbr=*D* in the BIFT entry with ID=1. BIER packets are decapsulated to obtain inner user packets. Specifically, as an example, device D may remove the BIER header and the IOAM-DEX command header in the BIER packet, obtain the inner user packet, and forward the user packet.

步骤650:设备E接收到BIER报文后,根据BIER报文中的IOAM-DEX指令头获取IOAM信息。Step 650: After receiving the BIER message, the device E obtains the IOAM information according to the IOAM-DEX command header in the BIER message.

作为示例,设备E在接收BIER报文之前,可以建立BIFT(例如,ID=1的BIFT)。作为示例,设备E的BFR ID为1,设备E建立的ID=1BIFT为:Nbr=*E*,FBM=0001。其中,标识*表示自己,Nbr=*E*表示设备E的下一跳设备为自己,FBM=0001表示当有BIER报文的bitstring从右往左第1个bit位为1时,上述BIFT用于指导设备E发送将该BIER报文发送给自己。例如,设备E会对BIER报文进行解封装。As an example, the device E may establish a BIFT (eg, BIFT with ID=1) before receiving the BIER message. As an example, the BFR ID of the device E is 1, and the ID=1 BIFT established by the device E is: Nbr=*E*, FBM=0001. Among them, the mark * indicates itself, Nbr=*E* indicates that the next hop device of device E is itself, and FBM=0001 indicates that when the first bit of the bitstring of the BIER message from right to left is 1, the above BIFT uses To instruct device E to send the BIER message to itself. For example, device E decapsulates BIER packets.

设备E在接收到设备C发送的BIER报文后,可以根据BIER报文中的IOAM-DEX指令头获取IOAM信息。该IOAM信息中可以包括但不限于:根据IOAM-DEX指令头的IOAM-trace-type字段采集到的相应的网络参数,Local BFR-prefix字段(例如,该字段为设备E的BFR-prefix),Next BFR-prefix字段(例如,该字段为设备E的BFR-prefix),BIER头中的BFIR ID(例如,设备A的BFR ID,取值为4)、BIFT ID(例如,取值为1)、entropy(例如,取值为1)等。应理解,有关网络参数的描述请参见上文中的说明,此处暂不详述。After receiving the BIER message sent by device C, device E can obtain IOAM information according to the IOAM-DEX command header in the BIER message. The IOAM information may include, but is not limited to: the corresponding network parameters collected according to the IOAM-trace-type field of the IOAM-DEX command header, the Local BFR-prefix field (for example, this field is the BFR-prefix of the device E), Next BFR-prefix field (for example, this field is the BFR-prefix of device E), BFIR ID in the BIER header (for example, the BFR ID of device A, the value is 4), BIFT ID (for example, the value is 1) , entropy (for example, the value is 1), etc. It should be understood that, for the description of the network parameters, please refer to the above description, which will not be described in detail here.

步骤653:设备E向控制器发送所述IOAM信息。Step 653: Device E sends the IOAM information to the controller.

设备E可以在获取IOAM信息后,将该IOAM信息上送给控制器。After acquiring the IOAM information, the device E can send the IOAM information to the controller.

步骤655:设备E解封装BIER报文。Step 655: Device E decapsulates the BIER packet.

设备E还可以根据BIER头的bit string字段为0001以及上述BIFT表项里Nbr=*E*对应的FBM字段(0001)确定自己为BIER域的出口(egress)设备,设备E对BIER报文进行解封装,得到内层的用户报文。具体的,作为示例,设备E可以移除BIER报文中的BIER头和IOAM-DEX指令头,得到内层的用户报文,并对该用户报文进行转发。Device E can also determine that it is an egress device in the BIER domain according to the bit string field of the BIER header as 0001 and the FBM field (0001) corresponding to Nbr=*E* in the above BIFT entry. Device E processes the BIER message. Decapsulate to obtain inner user packets. Specifically, as an example, the device E may remove the BIER header and the IOAM-DEX command header in the BIER packet, obtain the inner layer user packet, and forward the user packet.

步骤660:设备F接收到BIER报文后,根据BIER报文中的IOAM-DEX指令头获取IOAM信息。Step 660: After receiving the BIER message, the device F obtains the IOAM information according to the IOAM-DEX command header in the BIER message.

作为示例,设备F在接收BIER报文之前,可以建立BIFT(例如,ID=1的BIFT)。作为示例,设备F的BFR ID为2,设备F建立的ID=1的BIFT为:Nbr=*F*,FBM=0010。其中,标识*表示自己,Nbr=*F*表示设备F的下一跳设备为自己,FBM=0010表示当有BIER报文的bitstring从右往左第2个bit位为1时,上述BIFT用于指导设备F将该BIER报文发送给自己。例如,设备F会对BIER报文进行解封装。As an example, device F may establish a BIFT (eg, BIFT with ID=1) before receiving the BIER message. As an example, the BFR ID of device F is 2, and the BIFT of ID=1 established by device F is: Nbr=*F*, FBM=0010. Among them, the mark * indicates itself, Nbr=*F* indicates that the next hop device of device F is itself, and FBM=0010 indicates that when the second bit of the bitstring of the BIER message from right to left is 1, the above BIFT uses To instruct device F to send the BIER message to itself. For example, device F decapsulates BIER packets.

设备F在接收到设备C发送的BIER报文后,可以根据BIER报文中的IOAM-DEX指令头获取IOAM信息。该IOAM信息中可以包括但不限于:根据IOAM-DEX指令头的IOAM-trace-type字段采集到的相应的网络参数,Local BFR-prefix字段(例如,该字段为设备F的BFR-prefix),Next BFR-prefix字段(例如,该字段为设备F的BFR-prefix),BIER头中的BFIR ID(例如,设备A的BFR ID,取值为4)、BIFT ID(例如,取值为1)、entropy(例如,取值为1)等。应理解,有关网络参数的描述请参见上文中的说明,此处暂不详述。After receiving the BIER message sent by device C, device F can obtain IOAM information according to the IOAM-DEX command header in the BIER message. The IOAM information may include, but is not limited to: the corresponding network parameters collected according to the IOAM-trace-type field of the IOAM-DEX command header, the Local BFR-prefix field (for example, this field is the BFR-prefix of device F), Next BFR-prefix field (for example, this field is the BFR-prefix of device F), BFIR ID in the BIER header (for example, the BFR ID of device A, the value is 4), BIFT ID (for example, the value is 1) , entropy (for example, the value is 1), etc. It should be understood that, for the description of the network parameters, please refer to the above description, which will not be described in detail here.

步骤663:设备F向控制器发送所述IOAM信息。Step 663: Device F sends the IOAM information to the controller.

设备F可以在获取IOAM信息后,将该IOAM信息上送给控制器。After acquiring the IOAM information, the device F can send the IOAM information to the controller.

步骤665:设备F解封装BIER报文。Step 665: Device F decapsulates the BIER message.

设备F还可以根据BIER头的bit string字段为0010以及上述BIFT表项里Nbr=*F*对应的FBM字段(0010)确定自己为BIER域的出口(egress)设备,设备F对BIER报文进行解封装,得到内层的用户报文。具体的,作为示例,设备F可以移除BIER报文中的BIER头和IOAM-DEX指令头,得到内层的用户报文,并对该用户报文进行转发。Device F can also determine that it is an egress device of the BIER domain according to the bit string field of the BIER header as 0010 and the FBM field (0010) corresponding to Nbr=*F* in the above BIFT entry. Decapsulate to obtain inner user packets. Specifically, as an example, device F may remove the BIER header and the IOAM-DEX command header in the BIER packet, obtain the inner user packet, and forward the user packet.

步骤670:控制器对获取的多个IOAM信息进行关联。Step 670: The controller associates the acquired pieces of IOAM information.

一个示例,控制器获取到各个IOAM-DEX转发节点(例如,上述的设备A-设备F)上报的IOAM信息后,可以根据IOAM信息中的BFIR ID字段、BIFT ID字段以及entropy字段的取值,将具有相同取值的IOAM信息关联到同一个组播流。例如,以图4所示的转发场景为例,控制器确定设备A、设备B、设备C、设备D、设备E、设备F分别上报的IOAM信息的BFIR ID字段、BIFT ID字段以及entropy字段的取值相同,因此,该控制器可以将设备A-设备F分别上报的IOAM信息关联到同一个组播流。An example, after the controller obtains the IOAM information reported by each IOAM-DEX forwarding node (for example, the above-mentioned device A-device F), it can, according to the values of the BFIR ID field, the BIFT ID field and the entropy field in the IOAM information, Associate IOAM information with the same value to the same multicast stream. For example, taking the forwarding scenario shown in FIG. 4 as an example, the controller determines the BFIR ID field, BIFT ID field and entropy field of the IOAM information reported by Device A, Device B, Device C, Device D, Device E, and Device F respectively. The values are the same. Therefore, the controller can associate the IOAM information reported by device A and device F respectively to the same multicast stream.

另一个示例,控制器还可以在该组播流发生丢包等故障时,可以根据IOAM信息中的BFIR ID确定对应的SD/BSL/SI组合。也就是说,该控制器可以根据IOAM信息中的BFIR ID确定组播流所属的SD、BSL以及SI。In another example, the controller may also determine the corresponding SD/BSL/SI combination according to the BFIR ID in the IOAM information when a failure such as packet loss occurs in the multicast stream. That is, the controller can determine the SD, BSL and SI to which the multicast stream belongs according to the BFIR ID in the IOAM information.

另一个示例,控制器还可以根据IOAM信息中的标识符(例如,Local BFR-prefix字段、Next BFR-prefix字段),对上述同一个组播流的组播路径进行还原,从而可以测量得到同一个组播流中任意一对BFIR-BFER的性能参数。例如,控制器可以根据设备A上报的IOAM信息的Local BFR-prefix字段为设备A的BFR-prefix、Next BFR-prefix字段为设备B的BFR-prefix,设备B上报的IOAM信息的Local BFR-prefix字段为设备B的BFR-prefix、NextBFR-prefix字段为设备C的BFR-prefix,设备C上报的IOAM信息的Local BFR-prefix字段为设备C的BFR-prefix、Next BFR-prefix字段为设备E的BFR-prefix,确定设备A->设备B->设备C->设备E的一个组播路径。并根据设备A-设备F分别上报的IOAM信息中的网络参数,得到同一个组播流中的任意一对BFIR-BFER的IOAM性能参数,从而对网络进行管理和故障检测。In another example, the controller can also restore the multicast path of the same multicast stream according to the identifiers in the IOAM information (for example, the Local BFR-prefix field and the Next BFR-prefix field), so that the same multicast stream can be measured and obtained. Performance parameters of any pair of BFIR-BFERs in a multicast stream. For example, the controller can use the Local BFR-prefix field of the IOAM information reported by Device A to be the BFR-prefix of Device A, and the Next BFR-prefix field to be the BFR-prefix of Device B, and the Local BFR-prefix of the IOAM information reported by Device B to be the BFR-prefix of Device B The field is the BFR-prefix of device B, the NextBFR-prefix field is the BFR-prefix of device C, the Local BFR-prefix field of the IOAM information reported by device C is the BFR-prefix of device C, and the Next BFR-prefix field is the BFR-prefix of device E. BFR-prefix, which determines a multicast path from device A->device B->device C->device E. And according to the network parameters in the IOAM information reported by device A and device F respectively, the IOAM performance parameters of any pair of BFIR-BFERs in the same multicast stream are obtained, so as to manage the network and detect faults.

上述技术方案中,控制器可以关联每个BFR上送的IOAM信息,从而得到同一个组播流中的任意一对BFIR-BFER的IOAM性能参数。同时还可以减小不必要的报文头开销,节省网络带宽,使数据处理简单化,避免因IOAM信息被复制成多个副本所造成的大量冗余测量数据所造成的较大的报文头开销以及网络带宽的浪费。In the above technical solution, the controller can associate the IOAM information sent by each BFR, thereby obtaining the IOAM performance parameters of any pair of BFIR-BFERs in the same multicast stream. At the same time, it can also reduce unnecessary packet header overhead, save network bandwidth, simplify data processing, and avoid large packet headers caused by a large number of redundant measurement data caused by IOAM information being copied into multiple copies. overhead and wasted network bandwidth.

上文结合图1至图7,详细描述了本申请实施例提供的一种数据处理的方法,下面将结合图8至图12,详细描述本申请的装置的实施例。应理解,方法实施例的描述与装置实施例的描述相互对应,因此,未详细描述的部分可以参见前面方法实施例。A data processing method provided by an embodiment of the present application is described in detail above with reference to FIGS. 1 to 7 , and an embodiment of the apparatus of the present application will be described in detail below with reference to FIGS. 8 to 12 . It should be understood that the descriptions of the method embodiments correspond to the descriptions of the apparatus embodiments. Therefore, for the parts not described in detail, reference may be made to the foregoing method embodiments.

图8是本申请实施例提供的一种控制器800的示意性结构图。图8所示的该控制器800可以执行上述实施例的方法中控制器执行的相应步骤。如图8所示,所述控制器800包括:接收模块810,处理模块820。FIG. 8 is a schematic structural diagram of a controller 800 provided by an embodiment of the present application. The controller 800 shown in FIG. 8 can execute the corresponding steps executed by the controller in the methods of the above embodiments. As shown in FIG. 8 , the controller 800 includes: a receiving module 810 and a processing module 820 .

应理解,控制器800可以执行上述实施例的方法中控制器执行的相应步骤,例如图5中的控制器执行的相应步骤。具体的,接收模块810可以实现图5中步骤510的方法流程,用于接收多个在线操作管理维护IOAM信息;处理模块820可以实现图5中步骤520的方法流程,用于根据所述多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值将所述多个IOAM信息关联到第一组播流。It should be understood that the controller 800 may perform corresponding steps performed by the controller in the methods of the above embodiments, for example, the corresponding steps performed by the controller in FIG. 5 . Specifically, the receiving module 810 may implement the method flow of step 510 in FIG. 5 for receiving multiple online operation management and maintenance IOAM information; the processing module 820 may implement the method flow of step 520 in FIG. Each BFIR ID, bit index forwarding table identification BIFT ID and entropy value in the IOAM information associates the plurality of IOAM information to the first multicast stream.

可选地,该处理模块820具体用于:根据该多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值相同,将该多个IOAM信息关联到该第一组播流。Optionally, the processing module 820 is specifically configured to: associate the multiple IOAM information with the first multicast according to the same value of each BFIR ID, the bit index forwarding table identification BIFT ID and the entropy value in the multiple IOAM information. flow.

可选地,该每个IOAM信息中还包括第一字段和第二字段,该第一字段用于指示向该控制器上报该IOAM信息的当前设备的标识,该第二字段用于指示该当前设备的下一跳邻居设备的标识。Optionally, each IOAM information also includes a first field and a second field, the first field is used to indicate the identifier of the current device reporting the IOAM information to the controller, and the second field is used to indicate the current device. The identifier of the device's next-hop neighbor device.

可选地,该当前设备的标识为该当前设备的地址,该下一跳邻居设备的标识为该下一跳邻居设备的地址。Optionally, the identifier of the current device is the address of the current device, and the identifier of the next-hop neighbor device is the address of the next-hop neighbor device.

可选地,该处理模块820还用于:根据该多个IOAM信息中每个IOAM信息的该第一字段和该第二字段,还原该第一组播流的转发路径。Optionally, the processing module 820 is further configured to: restore the forwarding path of the first multicast stream according to the first field and the second field of each IOAM information in the plurality of IOAM information.

可选地,该多个IOAM信息中的每个IOAM信息还包括IOAM跟踪数据,该处理模块820还用于:根据该第一组播流的转发路径和该多个IOAM信息中的IOAM跟踪数据,得到该第一组播流的入口设备到出口设备之间的网络性能。Optionally, each IOAM information in the multiple IOAM information further includes IOAM tracking data, and the processing module 820 is further configured to: according to the forwarding path of the first multicast stream and the IOAM tracking data in the multiple IOAM information , to obtain the network performance between the ingress device and the egress device of the first multicast stream.

图9是本申请实施例提供的一种第一网络设备900的示意性结构图。图9所示的该第一网络设备900可以执行上述实施例的方法中设备A-设备F中任意一个设备执行的相应步骤。如图9所示,所述第一网络设备900包括:获取模块910、发送模块920。FIG. 9 is a schematic structural diagram of a first network device 900 provided by an embodiment of the present application. The first network device 900 shown in FIG. 9 may perform corresponding steps performed by any one of devices A-device F in the methods of the foregoing embodiments. As shown in FIG. 9 , the first network device 900 includes: an obtaining module 910 and a sending module 920 .

应理解,第一网络设备900可以执行上述实施例的方法中设备A-设备F中任意一个设备执行的相应步骤,例如图6中的设备A-设备F中任意一个设备执行的相应步骤。具体的,以第一网络设备900为设备A作为示例,获取模块910可以实现图6中步骤610的方法流程,用于获取BIER报文;获取模块910还可以实现图6中步骤613的方法流程,用于根据所述IOAM-DEX指令头获取IOAM信息;发送模块920可以实现图6中步骤615的方法流程,用于向控制器发送所述IOAM信息;所述发送模块920可以实现图6中步骤617的方法流程,用于发送BIER报文。It should be understood that the first network device 900 may perform corresponding steps performed by any one of devices A-device F in the methods of the above embodiments, for example, corresponding steps performed by any one of devices A-device F in FIG. 6 . Specifically, taking the first network device 900 as device A as an example, the acquisition module 910 can implement the method flow of step 610 in FIG. 6 to acquire the BIER message; the acquisition module 910 can also implement the method flow of step 613 in FIG. 6 . , for obtaining IOAM information according to the IOAM-DEX command header; the sending module 920 can implement the method flow of step 615 in FIG. 6 , for sending the IOAM information to the controller; the sending module 920 can implement the method in FIG. 6 . The method flow of step 617 is used to send a BIER message.

可选地,该获取模块910还用于:根据该IOAM-DEX指令头获取该第一网络设备的标识、该第一网络设备到下一跳邻居设备的标识,该下一跳邻居设备为该第一网络设备该BIER报文的目的设备的下一跳;该发送模块920还用于:该第一网络设备向该控制器发送该第一网络设备的标识以及该第一网络设备的下一跳邻居设备的标识。Optionally, the obtaining module 910 is further configured to: obtain the identification of the first network device, the identification of the first network device to the next-hop neighbor device according to the IOAM-DEX instruction header, and the next-hop neighbor device is the the next hop of the destination device of the BIER message of the first network device; the sending module 920 is further configured to: the first network device sends the identifier of the first network device and the next hop of the first network device to the controller The ID of the hop neighbor device.

可选地,该第一网络设备的标识为该第一网络设备的地址,该下一跳邻居设备的标识为该下一跳邻居设备的地址。Optionally, the identifier of the first network device is the address of the first network device, and the identifier of the next-hop neighbor device is the address of the next-hop neighbor device.

可选地,该获取模块910还用于:根据该IOAM-DEX指令头获取IOAM跟踪数据;该发送模块920还用于:向该控制器发送该IOAM跟踪数据。Optionally, the obtaining module 910 is further configured to: obtain the IOAM tracking data according to the IOAM-DEX command header; the sending module 920 is further configured to: send the IOAM tracking data to the controller.

可选地,该第一网络设备为BIER域的位转发入口路由器BFIR,该第一网络设备900还包括:接收模块930,封装模块940,Optionally, the first network device is a bit forwarding ingress router BFIR of the BIER domain, and the first network device 900 further includes: a receiving module 930, an encapsulating module 940,

接收模块930,用于接收用户报文;a receiving module 930, configured to receive user messages;

封装模块940,用于对该用户报文进行封装,得到该BIER报文。The encapsulation module 940 is configured to encapsulate the user message to obtain the BIER message.

可选地,该第一网络设备为BIER域的位转发出口路由器BFER,该第一网络设备900还包括:解封装模块950,用于对该BIER报文解封装,得到内层的用户报文。Optionally, the first network device is a bit forwarding egress router BFER in the BIER domain, and the first network device 900 further includes: a decapsulation module 950, configured to decapsulate the BIER message to obtain an inner user message .

图10是本申请实施例的第一网络设备2000的硬件结构示意图。图10所示第一网络设备2000可以执行上述实施例的方法中第一网络设备执行的相应步骤。FIG. 10 is a schematic diagram of a hardware structure of a first network device 2000 according to an embodiment of the present application. The first network device 2000 shown in FIG. 10 may perform the corresponding steps performed by the first network device in the methods of the foregoing embodiments.

如图10所示,所述第一网络设备2000包括处理器2001、存储器2002、接口2003和总线2004。其中接口2003可以通过无线或有线的方式实现,具体来讲可以是网卡。上述处理器2001、存储器2002和接口2003通过总线2004连接。As shown in FIG. 10 , the first network device 2000 includes a processor 2001 , a memory 2002 , an interface 2003 and a bus 2004 . The interface 2003 may be implemented in a wireless or wired manner, and may specifically be a network card. The above-mentioned processor 2001 , memory 2002 and interface 2003 are connected through a bus 2004 .

应理解,第一网络设备2000可以执行上述实施例的方法中第一网络设备执行的相应步骤,例如,图6的设备A-设备F中任意一个设备执行的相应步骤。It should be understood that the first network device 2000 may perform corresponding steps performed by the first network device in the methods of the foregoing embodiments, for example, corresponding steps performed by any one of devices A to F in FIG. 6 .

作为示例,处理器2001用于:获取BIER报文;根据所述IOAM-DEX指令头获取IOAM信息;向控制器发送所述IOAM信息。As an example, the processor 2001 is configured to: acquire a BIER message; acquire IOAM information according to the IOAM-DEX instruction header; and send the IOAM information to the controller.

具体的,以第一网络设备900为设备A作为示例,第一网络设备2000中的处理器2001可以实现图6中步骤610的方法流程,用于获取BIER报文;处理器2001还可以实现图6中步骤613的方法流程,用于根据所述IOAM-DEX指令头获取IOAM信息;第一网络设备2000中的接口2003还可以实现图6中步骤615的方法流程,用于向控制器发送所述IOAM信息;所述接口2003还可以实现图6中步骤617的方法流程,用于发送BIER报文。Specifically, taking the first network device 900 as device A as an example, the processor 2001 in the first network device 2000 can implement the method flow of step 610 in FIG. 6 to obtain the BIER message; the processor 2001 can also implement the process shown in FIG. The method flow of step 613 in 6 is used to obtain IOAM information according to the IOAM-DEX command header; the interface 2003 in the first network device 2000 can also implement the method flow of step 615 in FIG. 6, for sending all information to the controller. The IOAM information; the interface 2003 can also implement the method flow of step 617 in FIG. 6 for sending a BIER message.

所述接口2003具体可以包括发送器和接收器,用于第一网络设备实现上述收发。例如,所述接口2003用于获取BIER报文,或者用于向控制器发送IOAM信息。The interface 2003 may specifically include a transmitter and a receiver, which are used by the first network device to implement the above-mentioned transceiving. For example, the interface 2003 is used for acquiring BIER messages, or for sending IOAM information to the controller.

所述处理器2001用于执行上述实施例中由第一网络设备进行的处理。作为举例,所述处理器2001用于支持图6中的步骤。存储器2002包括操作系统20021和应用程序20022,用于存储程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成方法实施例中涉及第一网络设备的处理过程。可选的,所述存储器2002可以包括只读存储器(read-only memory,ROM)和随机存取存储器(random access memory,RAM)。其中,所述ROM包括基本输入/输出系统(basic input/output system,BIOS)或嵌入式系统;所述RAM包括应用程序和操作系统。当需要运行第一网络设备2000时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导第一网络设备2000进入正常运行状态。在第一网络设备2000进入正常运行状态后,运行在RAM中的应用程序和操作系统,从而,完成方法实施例中涉及第一网络设备2000的处理过程。The processor 2001 is configured to execute the processing performed by the first network device in the foregoing embodiment. As an example, the processor 2001 is used to support the steps in FIG. 6 . The memory 2002 includes an operating system 20021 and an application program 20022 for storing programs, codes or instructions. When the processor or hardware device executes these programs, codes or instructions, the processing process involving the first network device in the method embodiment can be completed. Optionally, the memory 2002 may include read-only memory (ROM) and random access memory (RAM). Wherein, the ROM includes a basic input/output system (basic input/output system, BIOS) or an embedded system; the RAM includes an application program and an operating system. When the first network device 2000 needs to be run, the system is booted through the BIOS solidified in the ROM or the bootloader in the embedded system, and the first network device 2000 is guided into a normal operation state. After the first network device 2000 enters the normal running state, the application program and the operating system running in the RAM, thus, the processing process involving the first network device 2000 in the method embodiment is completed.

可以理解的是,图10仅仅示出了第一网络设备2000的简化设计。在实际应用中,第一网络设备可以包含任意数量的接口,处理器或者存储器。It can be understood that FIG. 10 only shows a simplified design of the first network device 2000 . In practical applications, the first network device may contain any number of interfaces, processors or memories.

图11为本申请实施例的另一种第一网络设备2100的硬件结构示意图。图11所示的第一网络设备2100可以执行上述实施例的方法中第一网络设备执行的相应步骤。FIG. 11 is a schematic diagram of a hardware structure of another first network device 2100 according to an embodiment of the present application. The first network device 2100 shown in FIG. 11 may perform the corresponding steps performed by the first network device in the methods of the foregoing embodiments.

如图11所述,第一网络设备2100包括:主控板2110、接口板2130、交换网板2120和接口板2140。主控板2110、接口板2130和2140,以及交换网板2120之间通过系统总线与系统背板相连实现互通。其中,主控板2110用于完成系统管理、设备维护、协议处理等功能。交换网板2120用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。接口板2130和2140用于提供各种业务接口(例如,POS接口、GE接口、ATM接口等),并实现数据包的转发。As shown in FIG. 11 , the first network device 2100 includes: a main control board 2110 , an interface board 2130 , a switching network board 2120 and an interface board 2140 . The main control board 2110, the interface boards 2130 and 2140, and the switching network board 2120 are connected to the system backplane through the system bus to realize intercommunication. Among them, the main control board 2110 is used to complete functions such as system management, equipment maintenance, and protocol processing. The switch fabric board 2120 is used to complete data exchange between interface boards (interface boards are also called line cards or service boards). The interface boards 2130 and 2140 are used to provide various service interfaces (eg, POS interface, GE interface, ATM interface, etc.), and realize data packet forwarding.

应理解,第一网络设备2100可以执行上述实施例的方法中第一网络设备执行的相应步骤,例如,图6方法中的设备A-设备F中任意一个设备执行的相应步骤。It should be understood that the first network device 2100 may perform the corresponding steps performed by the first network device in the methods of the foregoing embodiments, for example, the corresponding steps performed by any one of devices A to F in the method in FIG. 6 .

具体的,以第一网络设备2100为设备A作为示例,主控板2110可以实现图6中步骤610的方法流程,用于获取BIER报文;主控板2110还可以实现图6中步骤613的方法流程,用于根据所述IOAM-DEX指令头获取IOAM信息;接口板2130可以实现图6中步骤615的方法流程,用于向控制器发送所述IOAM信息;所述接口板2130还可以实现图6中步骤617的方法流程,用于发送BIER报文。Specifically, taking the first network device 2100 as device A as an example, the main control board 2110 can implement the method flow of step 610 in FIG. 6 to obtain the BIER message; the main control board 2110 can also implement the process of step 613 in FIG. 6 The method flow is used to obtain IOAM information according to the IOAM-DEX command header; the interface board 2130 can implement the method flow of step 615 in FIG. 6 , for sending the IOAM information to the controller; the interface board 2130 can also implement The method flow of step 617 in FIG. 6 is used to send a BIER message.

接口板2130可以包括中央处理器2131、转发表项存储器2134、物理接口卡2133和网络处理器2132。其中,中央处理器2131用于对接口板进行控制管理并与主控板上的中央处理器进行通信。转发表项存储器2134用于保存表项,例如,上文中的BIFT。物理接口卡2133用于完成流量的接收和发送。The interface board 2130 may include a central processing unit 2131 , a forwarding table entry memory 2134 , a physical interface card 2133 and a network processor 2132 . Among them, the central processing unit 2131 is used to control and manage the interface board and communicate with the central processing unit on the main control board. The forwarding entry storage 2134 is used to store entries, eg, BIFT above. The physical interface card 2133 is used to receive and transmit traffic.

应理解,本申请实施例中接口板2140上的操作与所述接口板2130的操作一致,为了简洁,不再赘述。应理解,本实施例的第一网络设备2100可对应于上述方法实施例所具有的功能和/或所实施的各种步骤,在此不再赘述。It should be understood that the operations on the interface board 2140 in the embodiment of the present application are consistent with the operations on the interface board 2130, and for brevity, details are not repeated here. It should be understood that the first network device 2100 in this embodiment may correspond to the functions and/or various steps performed by the foregoing method embodiments, and details are not described herein again.

应理解,本实施例的第一网络设备2100可对应于上述方法实施例所具有的功能和/或所实施的各种步骤,在此不再赘述。It should be understood that the first network device 2100 in this embodiment may correspond to the functions and/or various steps performed by the foregoing method embodiments, and details are not described herein again.

此外,需要说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,第一网络设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,第一网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,第一网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的第一网络设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。In addition, it should be noted that there may be one or more main control boards, and when there are multiple main control boards, they may include an active main control board and a backup main control board. There may be one or more interface boards, and the stronger the data processing capability of the first network device, the more interface boards provided. There can also be one or more physical interface cards on the interface board. There may be no switch fabric boards, or there may be one or more boards. When there are multiple boards, load sharing and redundancy backup can be implemented together. Under the centralized forwarding architecture, the first network device may not need to switch the network board, and the interface board undertakes the processing function of the service data of the entire system. Under the distributed forwarding architecture, the first network device may have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the first network device in the distributed architecture are greater than those in the centralized architecture. The specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.

图12是本申请实施例的控制器2200的硬件结构示意图。图12所示控制器2200可以执行上述实施例的方法中控制器执行的相应步骤。FIG. 12 is a schematic diagram of a hardware structure of a controller 2200 according to an embodiment of the present application. The controller 2200 shown in FIG. 12 can execute the corresponding steps executed by the controller in the method of the above embodiment.

如图12所示,所述控制器2200包括处理器2201、存储器2202、接口2203和总线2204。其中接口2203可以通过无线或有线的方式实现,具体来讲可以是网卡。上述处理器2201、存储器2202和接口2203通过总线2204连接。As shown in FIG. 12 , the controller 2200 includes a processor 2201 , a memory 2202 , an interface 2203 and a bus 2204 . The interface 2203 may be implemented in a wireless or wired manner, and may specifically be a network card. The above-mentioned processor 2201 , memory 2202 and interface 2203 are connected through a bus 2204 .

应理解,控制器2200可以执行上述实施例的方法中控制器执行的相应步骤,例如,图5中中的控制器执行的相应步骤。It should be understood that the controller 2200 may perform corresponding steps performed by the controller in the methods of the above embodiments, for example, the corresponding steps performed by the controller in FIG. 5 .

作为示例,接口2203可以实现图5中步骤510的方法流程,用于接收多个在线操作管理维护IOAM信息;处理器2201可以实现图5中步骤520的方法流程,用于根据所述多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值将所述多个IOAM信息关联到第一组播流。As an example, the interface 2203 may implement the method flow of step 510 in FIG. 5 for receiving multiple online operation management and maintenance IOAM information; the processor 2201 may implement the method flow of step 520 in FIG. Each BFIR ID, bit index forwarding table identification BIFT ID and entropy value in the information associates the plurality of IOAM information to the first multicast stream.

所述接口2203具体可以包括发送器和接收器,用于控制器实现上述收发。例如,该接口用于支持接收多个在线操作管理维护IOAM信息。The interface 2203 may specifically include a transmitter and a receiver, which are used by the controller to implement the above-mentioned transceiving. For example, this interface is used to support receiving multiple online operation management and maintenance IOAM information.

所述处理器2201用于执行上述实施例中由控制器进行的处理。例如,用于根据所述多个IOAM信息中的每个BFIR ID、位索引转发表标识BIFT ID和entropy值将所述多个IOAM信息关联到第一组播流;和/或用于本文所描述的技术的其他过程。存储器2202包括操作系统22021和应用程序22022,用于存储程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成方法实施例中涉及控制器的处理过程。可选的,所述存储器2202可以包括只读存储器(read-only memory,ROM)和随机存取存储器(random accessmemory,RAM)。其中,所述ROM包括基本输入/输出系统(basic input/output system,BIOS)或嵌入式系统;所述RAM包括应用程序和操作系统。当需要运行控制器2200时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导控制器2200进入正常运行状态。在控制器2200进入正常运行状态后,运行在RAM中的应用程序和操作系统,从而,完成方法实施例中涉及控制器2200的处理过程。The processor 2201 is used to execute the processing performed by the controller in the above-mentioned embodiment. For example, for associating the plurality of IOAM information to a first multicast stream according to each BFIR ID, bit index forwarding table identification BIFT ID, and entropy value in the plurality of IOAM information; and/or for use herein Other procedures of the described technique. The memory 2202 includes an operating system 22021 and an application program 22022 for storing programs, codes or instructions. When the processor or hardware device executes these programs, codes or instructions, the processing process involving the controller in the method embodiment can be completed. Optionally, the memory 2202 may include read-only memory (ROM) and random access memory (RAM). Wherein, the ROM includes a basic input/output system (basic input/output system, BIOS) or an embedded system; the RAM includes an application program and an operating system. When the controller 2200 needs to be run, the system is booted through the BIOS solidified in the ROM or the bootloader in the embedded system, and the controller 2200 is booted into a normal running state. After the controller 2200 enters the normal running state, the application program and the operating system run in the RAM, thereby completing the processing process involving the controller 2200 in the method embodiment.

可以理解的是,图12仅仅示出了控制器2200的简化设计。在实际应用中,控制器2200可以包含任意数量的接口,处理器或者存储器。It will be appreciated that FIG. 12 only shows a simplified design of the controller 2200 . In practical applications, the controller 2200 may contain any number of interfaces, processors or memories.

本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行上述第一网络设备执行的方法。这些计算机可读存储包括但不限于如下的一个或者多个:只读存储器(read-onlymemory,ROM)、可编程ROM(programmable ROM,PROM)、可擦除的PROM(erasable PROM,EPROM)、Flash存储器、电EPROM(electrically EPROM,EEPROM)以及硬盘驱动器(harddrive)。Embodiments of the present application further provide a computer-readable medium, where program codes are stored in the computer-readable medium, and when the computer program codes are run on a computer, the computer executes the method performed by the first network device. These computer-readable storages include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), Flash Memory, electrical EPROM (electrically EPROM, EEPROM) and hard drive (harddrive).

本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行上述控制器执行的方法。这些计算机可读存储包括但不限于如下的一个或者多个:只读存储器(read-only memory,ROM)、可编程ROM(programmable ROM,PROM)、可擦除的PROM(erasable PROM,EPROM)、Flash存储器、电EPROM(electrically EPROM,EEPROM)以及硬盘驱动器(hard drive)。Embodiments of the present application further provide a computer-readable medium, where program codes are stored in the computer-readable medium, and when the computer program codes are run on a computer, the computer executes the method performed by the above-mentioned controller. These computer-readable storages include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (erasable PROM, EPROM), Flash memory, electrical EPROM (electrically EPROM, EEPROM) and hard drive (hard drive).

本申请实施例还提供了一种芯片系统,应用于第一网络设备中,该芯片系统包括:至少一个处理器、至少一个存储器和接口电路,所述接口电路负责所述芯片系统与外界的信息交互,所述至少一个存储器、所述接口电路和所述至少一个处理器通过线路互联,所述至少一个存储器中存储有指令;所述指令被所述至少一个处理器执行,以进行上述各个方面的所述的方法中所述第一网络设备的操作。An embodiment of the present application further provides a chip system, which is applied to the first network device, the chip system includes: at least one processor, at least one memory, and an interface circuit, where the interface circuit is responsible for information between the chip system and the outside world interaction, the at least one memory, the interface circuit and the at least one processor are interconnected by a wire, and the at least one memory stores instructions; the instructions are executed by the at least one processor to perform the above aspects The operation of the first network device in the method.

在具体实现过程中,该芯片可以以中央处理器(central processing unit,CPU)、微控制器(micro controller unit,MCU)、微处理器(micro processing unit,MPU)、数字信号处理器(digital signal processing,DSP)、片上系统(system on chip,SoC)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(fieldprogrammable gate array,FPGA)或可编辑逻辑器件(programmable logic device,PLD)的形式实现。In the specific implementation process, the chip can be a central processing unit (CPU), a microcontroller (micro controller unit, MCU), a microprocessor (micro processing unit, MPU), a digital signal processor (digital signal processor) processing, DSP), system on chip (system on chip, SoC), application-specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or programmable logic device (programmable logic device, PLD) is implemented in the form of.

本申请实施例还提供了另一种芯片系统,应用于控制器中,该芯片系统包括:至少一个处理器、至少一个存储器和接口电路,所述接口电路负责所述芯片系统与外界的信息交互,所述至少一个存储器、所述接口电路和所述至少一个处理器通过线路互联,所述至少一个存储器中存储有指令;所述指令被所述至少一个处理器执行,以进行上述各个方面的所述的方法中所述控制器的操作。The embodiment of the present application further provides another chip system, which is applied in a controller, and the chip system includes: at least one processor, at least one memory, and an interface circuit, where the interface circuit is responsible for information interaction between the chip system and the outside world , the at least one memory, the interface circuit and the at least one processor are interconnected through a line, and instructions are stored in the at least one memory; the instructions are executed by the at least one processor to perform the above-mentioned various aspects. the operation of the controller in the method.

在具体实现过程中,该芯片可以以中央处理器(central processing unit,CPU)、微控制器(micro controller unit,MCU)、微处理器(micro processing unit,MPU)、数字信号处理器(digital signal processing,DSP)、片上系统(system on chip,SoC)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(fieldprogrammable gate array,FPGA)或可编辑逻辑器件(programmable logic device,PLD)的形式实现。In the specific implementation process, the chip can be a central processing unit (CPU), a microcontroller (micro controller unit, MCU), a microprocessor (micro processing unit, MPU), a digital signal processor (digital signal processor) processing, DSP), system on chip (system on chip, SoC), application-specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or programmable logic device (programmable logic device, PLD) is implemented in the form of.

本申请实施例还提供了一种计算机程序产品,应用于第一网络设备中,所述计算机程序产品包括一系列指令,当所述指令被运行时,以进行上述各个方面的所述的方法中所述第一网络设备的操作。Embodiments of the present application further provide a computer program product, which is applied to a first network device, where the computer program product includes a series of instructions, when the instructions are executed, to perform the methods described in the above aspects. Operation of the first network device.

本申请实施例还提供了一种计算机程序产品,应用于控制器中,所述计算机程序产品包括一系列指令,当所述指令被运行时,以进行上述各个方面的所述的方法中所述控制器的操作。Embodiments of the present application further provide a computer program product, which is applied in a controller, where the computer program product includes a series of instructions, when the instructions are executed, to perform the methods described in the above aspects Operation of the controller.

应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause 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 application. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (28)

1. A method of data processing, comprising:
the method comprises the steps that a controller receives a plurality of pieces of online operation management maintenance IOAM information, the IOAM information is reported by a plurality of pieces of equipment in a bit-indexed explicit copy BIER domain, and each piece of IOAM information in the IOAM information comprises a bit forwarding entry router identification (BFIR ID), a bit index forwarding table identification (BIFT ID) and an entropy (entrypy) value;
the controller associates the plurality of IOAM information to a first multicast stream according to each BFIR ID, bit index forwarding table identification (BIFT ID) and entropy value in the plurality of IOAM information.
2. The method of claim 1, wherein the controller associates the plurality of IOAM information to a first multicast stream according to each BFIR ID, bit index forwarding table identification (BIFT ID), and entrypy value in the plurality of IOAM information, comprising:
and the controller associates the plurality of IOAM information to the first multicast flow according to the identity of each BFIR ID and the bit index forwarding table identification BIFT ID and the same entcopy value in the plurality of IOAM information.
3. The method according to claim 1 or 2, wherein each IOAM information further includes a first field and a second field, the first field is used for indicating an identifier of a current device reporting the IOAM information to the controller, and the second field is used for indicating an identifier of a next-hop neighbor device of the current device.
4. The method of claim 3, wherein the identity of the current device is an address of the current device and the identity of the next-hop neighbor device is an address of the next-hop neighbor device.
5. The method according to claim 3 or 4, characterized in that the method further comprises:
the controller restores a forwarding path of the first multicast stream according to the first field and the second field of each IOAM information of the plurality of IOAM information.
6. The method of any of claims 1 to 5, wherein each of the plurality of IOAM information further comprises IOAM tracking data, the method further comprising:
and the controller obtains the network performance between the inlet equipment and the outlet equipment of the first multicast flow according to the forwarding path of the first multicast flow and the IOAM tracking data in the plurality of IOAM information.
7. A method of data processing, comprising:
a first network device acquires an explicit copy BIER message of a bit index, wherein the BIER message comprises a bit forwarding entry router identifier (BFIR ID), a bit index forwarding table identifier (BIFT ID), an entropy (entrypy) value and an IOAM-DEX instruction head directly derived from online operation management and maintenance;
the first network equipment acquires IOAM information according to the IOAM-DEX instruction header, wherein the IOAM information comprises the BFIR ID, the BIFT ID and the entry value;
the first network device sends the IOAM information to a controller.
8. The method of claim 7, further comprising:
the first network equipment acquires an identifier of the first network equipment and an identifier from the first network equipment to next-hop neighbor equipment according to the IOAM-DEX instruction header, wherein the next-hop neighbor equipment is the next hop of the destination equipment of the BIER message of the first network equipment;
the first network device sends the identifier of the first network device and the identifier of the next-hop neighbor device of the first network device to the controller.
9. The method of claim 8, wherein the identity of the first network device is an address of the first network device, and wherein the identity of the next-hop neighbor device is an address of the next-hop neighbor device.
10. The method according to any one of claims 7 to 9, further comprising:
the first network equipment acquires IOAM tracking data according to the IOAM-DEX command header;
the first network device sends the IOAM trace data to the controller.
11. Method according to any of claims 7 to 10, wherein said first network device is a bit forwarding ingress router, BFIR, of a BIER domain, the method further comprising:
the first network equipment receives a user message;
and the first network equipment encapsulates the user message to obtain the BIER message.
12. The method according to any of claims 7 to 10, wherein the first network device is a bit forwarding egress router, BFER, of a BIER domain, the method further comprising:
and the first network equipment de-encapsulates the BIER message to obtain an inner layer user message.
13. A controller, comprising:
a receiving module, configured to receive a plurality of pieces of online operation management maintenance IOAM information, where the plurality of pieces of IOAM information are reported by a plurality of devices in a bit-indexed explicit replication BIER domain, and each piece of IOAM information in the plurality of pieces of IOAM information includes a bit forwarding entry router identifier (BFIR ID), a bit index forwarding table identifier (BIFT ID), and an entropy (entrypy) value;
and the processing module is used for associating the plurality of IOAM information to the first multicast flow according to each BFIRID in the plurality of IOAM information, the bit index forwarding table identification (BIFT ID) and the entrypy value.
14. The controller of claim 13, wherein the processing module is specifically configured to:
and associating the plurality of IOAM information to the first multicast stream according to the condition that each BFIR ID and bit index forwarding table identification (BIFT ID) in the plurality of IOAM information are the same as an entry value.
15. The controller according to claim 13 or 14, wherein each IOAM information further includes a first field and a second field, the first field is used for indicating an identifier of a current device reporting the IOAM information to the controller, and the second field is used for indicating an identifier of a next-hop neighbor device of the current device.
16. The controller of claim 15, wherein the identification of the current device is an address of the current device and the identification of the next-hop neighbor device is an address of the next-hop neighbor device.
17. The controller according to claim 15 or 16, wherein the processing module is further configured to:
restoring a forwarding path of the first multicast stream according to the first field and the second field of each of the plurality of IOAM information.
18. The controller of any one of claims 13 to 17, wherein each IOAM information of the plurality of IOAM information further comprises IOAM trace data, the processing module further to:
and obtaining the network performance between the inlet equipment and the outlet equipment of the first multicast flow according to the forwarding path of the first multicast flow and the IOAM tracking data in the plurality of IOAM information.
19. A first network device, comprising:
the system comprises an acquisition module, a data processing module and a data processing module, wherein the acquisition module is used for acquiring an explicit copy BIER message of a bit index, and the BIER message comprises a bit forwarding entry router identifier (BFIR ID), a bit index forwarding table identifier (BIFT ID), an entropy (entropy) value and an IOAM-DEX instruction head directly derived from online operation management maintenance;
the obtaining module is further configured to obtain IOAM information according to the IOAM-DEX instruction header, where the IOAM information includes the BFIR ID, the big ID, and the entrypy value;
and the sending module is used for sending the IOAM information to the controller.
20. The first network device of claim 19,
the acquisition module is further configured to: acquiring an identifier of the first network equipment and an identifier from the first network equipment to next-hop neighbor equipment according to the IOAM-DEX instruction header, wherein the next-hop neighbor equipment is the next hop of the destination equipment of the BIER message of the first network equipment;
the sending module is further configured to: the first network device sends the identifier of the first network device and the identifier of the next-hop neighbor device of the first network device to the controller.
21. The first network device of claim 20, wherein the identification of the first network device is an address of the first network device and the identification of the next-hop neighbor device is an address of the next-hop neighbor device.
22. The first network device of any of claims 19 to 21,
the acquisition module is further configured to: obtaining IOAM tracking data according to the IOAM-DEX instruction header;
the sending module is further configured to: sending the IOAM trace data to the controller.
23. The first network device according to any of claims 19 to 22, wherein the first network device is a bit forwarding ingress router, BFIR, of a BIER domain, the first network device further comprising:
the receiving module is used for receiving a user message;
and the encapsulation module is used for encapsulating the user message to obtain the BIER message.
24. The first network device according to any of claims 19 to 22, wherein the first network device is a bit forwarding egress router, BFER, of a BIER domain, the first network device further comprising:
and the decapsulation module is used for decapsulating the BIER message to obtain the user message of the inner layer.
25. A controller, comprising: a processor and memory for storing a program or code, the processor for invoking and running the program from the memory to perform the method of any one of claims 1-6.
26. A first network device, comprising: a processor and a memory, the memory for storing a program or code, the processor for invoking and running the program from the memory to perform the method of any one of claims 7 to 12.
27. A computer readable storage medium comprising a computer program or code which, when run on a controller, causes the controller to perform the method of any of claims 1 to 6.
28. A computer readable storage medium comprising a computer program or code which, when run on a first network device, causes the first network device to perform the method of any of claims 7 to 12.
CN202110122556.8A 2020-12-25 2021-01-29 Data processing method, controller and first network equipment Pending CN114690680A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011562578 2020-12-25
CN2020115625788 2020-12-25

Publications (1)

Publication Number Publication Date
CN114690680A true CN114690680A (en) 2022-07-01

Family

ID=82135872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110122556.8A Pending CN114690680A (en) 2020-12-25 2021-01-29 Data processing method, controller and first network equipment

Country Status (1)

Country Link
CN (1) CN114690680A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115333882A (en) * 2022-08-12 2022-11-11 中国电信股份有限公司 Information processing method and related equipment
WO2024109091A1 (en) * 2022-11-25 2024-05-30 中兴通讯股份有限公司 Method for processing optical transport network (otn) path layer overhead and method for transferring service state

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115333882A (en) * 2022-08-12 2022-11-11 中国电信股份有限公司 Information processing method and related equipment
CN115333882B (en) * 2022-08-12 2024-06-07 中国电信股份有限公司 Information processing method and related equipment
WO2024109091A1 (en) * 2022-11-25 2024-05-30 中兴通讯股份有限公司 Method for processing optical transport network (otn) path layer overhead and method for transferring service state

Similar Documents

Publication Publication Date Title
CN112866075B (en) In-band network telemetering method, system and related device for Overlay network
CN102415065B (en) The method and apparatus that redundant host connects in the network having route
CN101347038B (en) Communication via satellite switching over the network
US8634297B2 (en) Probing specific customer flow in layer-2 multipath networks
CN101536411B (en) Ethernet OAM on Intermediate Nodes in PBT Networks
CN109873760A (en) Method and device for processing route, and method and device for data transmission
WO2022100554A1 (en) Method for forwarding bier message, and device and system
CN113114576B (en) Method, device and system for message transmission
CN114465946B (en) Method, device and system for acquiring forwarding table item
CN103326940A (en) Method for forwarding message in network and edge device of operator
JP7322088B2 (en) Packet detection method and first network device
CN113285878B (en) Load sharing method and first network equipment
CN103067278B (en) A kind of method for transmission processing of Frame, equipment and system
WO2021129023A1 (en) Message sending method, device and system
CN111654441A (en) Method and device for pseudowire load sharing
WO2022116895A1 (en) Bier packet forwarding method, device, and system
WO2021244108A1 (en) Bier multicast traffic statistics method, device and system
WO2021254454A1 (en) Bier oam detection method, and device and system
CN113541924B (en) Message detection method, device and system
CN114690680A (en) Data processing method, controller and first network equipment
CN112822097B (en) Message forwarding method, first network device and first device group
JP7273125B2 (en) Method and first network device for transmitting BIERv6 packets
CN104426778A (en) Routing updating method and routing equipment
CN114338482A (en) Method and device for packet statistics
JP2010200269A (en) Communication device, packet transmission/reception device, communication method, and program

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