CN115941540A - Message processing device, node equipment and method - Google Patents
Message processing device, node equipment and method Download PDFInfo
- Publication number
- CN115941540A CN115941540A CN202211412702.1A CN202211412702A CN115941540A CN 115941540 A CN115941540 A CN 115941540A CN 202211412702 A CN202211412702 A CN 202211412702A CN 115941540 A CN115941540 A CN 115941540A
- Authority
- CN
- China
- Prior art keywords
- message
- address
- processing
- node device
- receiving unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012545 processing Methods 0.000 title claims abstract description 219
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000001514 detection method Methods 0.000 claims abstract description 40
- 238000004891 communication Methods 0.000 claims abstract description 37
- 238000012423 maintenance Methods 0.000 claims abstract description 14
- 230000005540 biological transmission Effects 0.000 claims description 49
- 230000008569 process Effects 0.000 claims description 27
- 238000003672 processing method Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 4
- 210000003311 CFU-EM Anatomy 0.000 description 68
- 201000000760 cerebral cavernous malformation Diseases 0.000 description 58
- 238000010586 diagram Methods 0.000 description 27
- 230000006870 function Effects 0.000 description 20
- 230000015654 memory Effects 0.000 description 17
- 238000001914 filtration Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 238000004904 shortening Methods 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 150000002085 enols Chemical class 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000005294 ferromagnetic effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000003012 network analysis Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及网络技术领域,尤其涉及一种报文处理装置、节点设备及方法。The present application relates to the field of network technologies, and in particular to a message processing device, node device and method.
背景技术Background technique
在实际应用中,对网络管理维护(Operation、Administration、and Management,OAM)相关的报文的处理方式不够灵活。In practical applications, the processing method for packets related to network management and maintenance (Operation, Administration, and Management, OAM) is not flexible enough.
发明内容Contents of the invention
基于以上问题,本申请实施例提供了一种报文处理装置、节点设备及方法。Based on the above problems, the embodiments of the present application provide a packet processing device, node device and method.
本申请实施例提供的技术方案是这样的:The technical solution provided by the embodiment of this application is as follows:
本申请实施例提供了一种报文处理装置,所述装置包括:所述装置设置在节点设备中;所述装置包括控制模块以及报文处理模块;其中:An embodiment of the present application provides a message processing device, the device includes: the device is set in a node device; the device includes a control module and a message processing module; wherein:
所述控制模块与所述报文处理模块之间建立有通信连接;所述通信连接不包括所述节点设备中用于处理网络数据包的协议栈;A communication connection is established between the control module and the message processing module; the communication connection does not include a protocol stack for processing network data packets in the node device;
所述报文处理模块中的至少部分处理单元,设置在所述节点设备的内核空间;所述报文处理模块用于接收并响应所述控制模块通过所述通信连接发送的控制指令,发送检测报文至目标设备,并接收所述目标设备发送的回复报文;对所述回复报文进行处理,确定所述节点设备与所述目标设备之间的链路状态;其中,所述检测报文以及所述回复报文包括网络管理维护OAM报文。At least part of the processing units in the message processing module are set in the kernel space of the node device; the message processing module is used to receive and respond to the control command sent by the control module through the communication connection, and send a detection send the message to the target device, and receive the reply message sent by the target device; process the reply message, and determine the link state between the node device and the target device; wherein, the detection report The message and the reply message include a network management and maintenance OAM message.
在一些实施例中,所述报文处理模块包括报文发送单元以及报文发送单元;其中:In some embodiments, the message processing module includes a message sending unit and a message sending unit; wherein:
所述报文发送单元,用于发送第一报文至所述目标设备;所述报文发送单元设置在所述内核空间;其中,所述第一报文至少包括环回检测报文(Loop Back Message,LBM)、连通性检测报文(Continuity Check Message,CCM)以及链路跟踪报文(Link TraceMessage,LTM);The message sending unit is configured to send a first message to the target device; the message sending unit is arranged in the kernel space; wherein, the first message includes at least a loopback detection message (Loop Back Message, LBM), connectivity detection message (Continuity Check Message, CCM) and link tracking message (Link TraceMessage, LTM);
所述报文接收单元,用于接收所述回复报文,并获取所述回复报文携带的附加数据,基于所述附加数据确定所述链路状态。The message receiving unit is configured to receive the reply message, acquire additional data carried in the reply message, and determine the link state based on the additional data.
在一些实施例中,所述报文接收单元,用于在所述回复报文为第二报文的情况下,基于所述附加数据中的时间信息,确定所述节点设备与所述目标设备之间的传输延时和/或丢包率;其中,所述第二报文至少包括连通性检测报文CCM。In some embodiments, the message receiving unit is configured to determine the node device and the target device based on the time information in the additional data when the reply message is a second message transmission delay and/or packet loss rate; wherein, the second message at least includes a connectivity detection message CCM.
在一些实施例中,所述报文接收单元,用于在所述回复报文为第三报文的情况下,基于所述附加数据中的时间信息,确定所述节点设备与所述目标设备之间的传输延时;其中,所述第三报文至少包括环回响应报文(Loop Back Reply,LBR)。In some embodiments, the message receiving unit is configured to determine the node device and the target device based on the time information in the additional data when the reply message is a third message The transmission delay between; wherein, the third message includes at least a loop back response message (Loop Back Reply, LBR).
在一些实施例中,所述报文接收单元,用于在所述回复报文为第四报文的情况下,基于所述附加数据中的设备信息,确定所述节点设备与所述目标设备之间的链路路径信息;其中,所述第四报文至少包括链路跟踪响应报文(Link Trace Reply,LTR);In some embodiments, the message receiving unit is configured to determine the node device and the target device based on the device information in the additional data when the reply message is a fourth message Link path information between; wherein, the fourth message includes at least a link trace response message (Link Trace Reply, LTR);
所述报文接收单元,还用于在接收到第五报文的情况下,获取第一地址以及第二地址,并设置所述第五报文的源地址为所述第一地址,设置所述第五报文的目的地址为所述第二地址,设置所述第五报文的报文类型为LTR,通过快速数据路径(eXpress DataPath,XDP)发送所述LTR;其中,所述第五报文至少包括LTM;所述第一地址包括所述节点设备的地址;所述第二地址包括发送所述LTM的设备的地址。The message receiving unit is further configured to obtain the first address and the second address when receiving the fifth message, and set the source address of the fifth message as the first address, and set the The destination address of the fifth message is the second address, the message type of the fifth message is set as LTR, and the LTR is sent through a fast data path (eXpress DataPath, XDP); wherein, the fifth The packet includes at least the LTM; the first address includes the address of the node device; the second address includes the address of the device sending the LTM.
在一些实施例中,所述报文接收单元,用于在接收到第六报文的情况下,获取第一地址以及第三地址,并设置所述第六报文的源地址为所述第一地址,设置所述第六报文的目的地址为所述第三地址,设置所述第六报文的报文类型为LBR,通过XDP发送所述LBR;其中,所述第六报文至少包括LBM;所述第一地址包括所述节点设备的地址;所述第三地址包括发送所述LBM的设备的地址。In some embodiments, the message receiving unit is configured to obtain the first address and the third address when receiving the sixth message, and set the source address of the sixth message as the An address, setting the destination address of the sixth message as the third address, setting the message type of the sixth message as LBR, and sending the LBR through XDP; wherein the sixth message is at least The LBM is included; the first address includes the address of the node device; the third address includes the address of the device sending the LBM.
在一些实施例中,所述报文接收单元包括伯克利包过滤器(Berkeley PacketFilter,BPF)的通用执行引擎(Extended Berkeley Packet Filter,eBPF)XDP;所述控制模块,用于加载所述eBPF XDP至所述节点设备的网卡。In some embodiments, the message receiving unit includes a general execution engine (Extended Berkeley Packet Filter, eBPF) XDP of Berkeley Packet Filter (Berkeley Packet Filter, BPF); the control module is used to load the eBPF XDP into A network card of the node device.
在一些实施例中,所述报文接收单元以及所述控制模块设置在所述用户空间;所述报文处理模块还包括所述内核空间设置的报文过滤单元,用于通过地址族快速数据路径(Address Family Express Data Path,AF_XDP)将所述OAM报文发送至所述报文接收单元。In some embodiments, the message receiving unit and the control module are set in the user space; the message processing module also includes a message filtering unit set in the kernel space, which is used to quickly data through the address family The path (Address Family Express Data Path, AF_XDP) sends the OAM message to the message receiving unit.
在一些实施例中,所述控制模块,用于在确定所述节点设备的网卡为指定网卡的情况下,加载所述报文处理模块至所述网卡。In some embodiments, the control module is configured to load the message processing module to the network card when it is determined that the network card of the node device is a designated network card.
本申请实施例还提供给了一种节点设备,所述节点设备包括如前任一所述的报文处理装置。The embodiment of the present application also provides a node device, where the node device includes the packet processing apparatus as described in any one of the preceding items.
本申请实施例还提供了一种报文处理方法,所述方法应用于设置在节点设备中的报文处理装置;所述报文处理装置包括控制模块以及报文处理模块;所述控制模块与所述报文处理模块之间建立有通信连接;所述通信连接不包括所述节点设备中用于处理网络数据包的协议栈;所述报文处理模块中的至少部分处理单元,设置在所述节点设备的内核空间;所述方法包括:The embodiment of the present application also provides a message processing method, and the method is applied to a message processing device arranged in a node device; the message processing device includes a control module and a message processing module; the control module and A communication connection is established between the message processing modules; the communication connection does not include a protocol stack for processing network data packets in the node device; at least part of the processing units in the message processing module are set in the The kernel space of above-mentioned node equipment; Described method comprises:
所述报文处理模块接收并响应所述控制模块通过所述通信连接发送的控制指令,发送检测报文至目标设备,并接收所述目标设备发送的回复报文;The message processing module receives and responds to the control command sent by the control module through the communication connection, sends a detection message to the target device, and receives a reply message sent by the target device;
所述报文处理模块对所述回复报文进行处理,确定所述节点设备与所述目标设备之间的链路状态;其中,所述检测报文以及所述回复报文包括OAM报文。The message processing module processes the reply message to determine the link status between the node device and the target device; wherein, the detection message and the reply message include an OAM message.
本申请实施例提供的报文处理装置中报文处理模块的至少部分处理单元设置在节点设备的内核空间,从而能够大大提高报文处理模块处理检测报文以及回复报文的效率;其次,控制模块与报文处理模块之间的通信连接不包括用于处理网络数据包的协议栈,从而能够减少控制模块与报文处理模块之间数据传输的环节,缩短二者之间指令透传以及数据传输的时延;并且,报文处理模块能够在接收到回复报文之后,直接对回复报文进行处理,确定节点设备与目标设备之间的链路状态,从而提高了对OAM报文处理的效率,提高了链路状态的确定效率。In the message processing device provided in the embodiment of the present application, at least part of the processing units of the message processing module are set in the kernel space of the node device, thereby greatly improving the efficiency of the message processing module in processing detection messages and reply messages; secondly, control The communication connection between the module and the message processing module does not include the protocol stack for processing network data packets, which can reduce the link of data transmission between the control module and the message processing module, and shorten the instruction transparent transmission and data transmission between the two. and the message processing module can directly process the reply message after receiving the reply message to determine the link state between the node device and the target device, thereby improving the processing efficiency of the OAM message Efficiency, which improves the efficiency of link state determination.
所以,本申请实施例提供的报文处理装置,不仅摆脱了对专用硬件芯片、特定网卡设备以及专用数据处理套件比如DPDK的依赖,而且相对于相关技术中的软件OAM报文处理方案,本申请实施例提供的报文处理装置的OAM报文处理的效率有所提高。Therefore, the message processing device provided by the embodiment of the present application not only gets rid of the dependence on dedicated hardware chips, specific network card devices, and dedicated data processing kits such as DPDK, but also compared to the software OAM message processing scheme in the related art, the present application The efficiency of OAM packet processing by the packet processing device provided by the embodiment is improved.
附图说明Description of drawings
图1为相关技术中提供的处理OAM报文的结构示意图;FIG. 1 is a schematic structural diagram of processing an OAM message provided in the related art;
图2为相关技术提供的处理OAM报文的另一结构示意图;FIG. 2 is another schematic structural diagram for processing OAM packets provided by related technologies;
图3为本申请实施例提供的报文处理装置的结构示意图;FIG. 3 is a schematic structural diagram of a message processing device provided in an embodiment of the present application;
图4为本申请实施例提供的报文处理装置的另一结构示意图;FIG. 4 is another schematic structural diagram of a message processing device provided in an embodiment of the present application;
图5为本申请实施例提供的报文发送单元发送LBM的结构示意图;FIG. 5 is a schematic structural diagram of the LBM sent by the message sending unit provided by the embodiment of the present application;
图6为本申请实施例提供的报文发送单元发送CCM的结构示意图;FIG. 6 is a schematic structural diagram of sending a CCM by a message sending unit provided in an embodiment of the present application;
图7为本申请实施例提供的报文发送单元发送LTM的结构示意图;FIG. 7 is a schematic structural diagram of an LTM sent by a message sending unit provided in an embodiment of the present application;
图8为本申请实施例提供的第一设备与第二设备之间OAM报文传输的结构示意图;FIG. 8 is a schematic structural diagram of OAM packet transmission between a first device and a second device provided in an embodiment of the present application;
图9为本申请实施例提供的第一设备与第二设备之间OAM报文传输的另一结构示意图;FIG. 9 is another schematic structural diagram of OAM message transmission between the first device and the second device according to the embodiment of the present application;
图10为本申请实施例提供的节点设备的结构示意图;FIG. 10 is a schematic structural diagram of a node device provided in an embodiment of the present application;
图11为本申请实施例提供的报文处理方法的流程示意图。FIG. 11 is a schematic flowchart of a message processing method provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在实际应用中,OAM报文处理逻辑通常通过专用的硬件芯片比如特定用途集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程逻辑门阵列(FieldProgrammable Gate Array,FPGA)或者网络处理器(Network Processor,NP)实现。然而,这样的方案对专用硬件芯片的依赖较强,若失去了专用硬件芯片的支持,则OAM报文处理功能无法实现。In practical applications, the OAM packet processing logic is usually implemented through dedicated hardware chips such as Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or Network Processor (Network Processor , NP) to achieve. However, such a solution relies heavily on a dedicated hardware chip, and if the support of the dedicated hardware chip is lost, the OAM message processing function cannot be realized.
为了摆脱对专用硬件芯片的依赖,相关技术中还提出了通过软件的方式实现OAM报文处理的方法,并将OAM报文处理逻辑设置于用户空间,图1为相关技术中提供的处理OAM报文的结构示意图,如图1所示,源设备101的用户空间设置有源设备OAM 1011,内核空间设置有源设备网络协议栈1012以及源设备网卡1013;目标设备102的用户空间设置有目标设备OAM 1021,内核空间设置有目标设备网络协议栈1022以及目标设备网卡1023。其中,源设备OAM 1011以及目标设备OAM1021能够实现OAM报文处理逻辑。In order to get rid of the dependence on dedicated hardware chips, a method for realizing OAM packet processing by software is also proposed in the related art, and the OAM packet processing logic is set in user space. Figure 1 shows the OAM packet processing method provided in the related art The structure schematic diagram of text, as shown in Figure 1, the user space of
在图1中,无论是源设备101发送OAM报文,还是目标设备102接收OAM报文,均需要通过源设备OAM 1011与源设备网络协议栈1012、以及目标设备OAM1021与目标设备网络协议栈1022之间复制拷贝OAM报文才能实现,这样就会占用大量的数据处理资源。In Fig. 1, no matter the
为了摆脱对硬件芯片的依赖,同时减少对数据处理资源的占用,且改善传统的软件实现方案时延精度不足的缺陷,相关技术中还提出了采用数据平面开发套件(DataPlane Development Kit,DPDK)处理OAM报文的方案,其中,DPDK主要基于Linux系统运行,用于快速数据包处理的函数库与驱动集合,能够极大提高数据处理性能和吞吐量,提高数据平面应用程序的工作效率。In order to get rid of the dependence on hardware chips, reduce the occupation of data processing resources, and improve the defect of insufficient time delay accuracy of traditional software implementation schemes, the related technology also proposes the use of Data Plane Development Kit (DPDK) to process The OAM message solution, in which DPDK is mainly based on the Linux system, is a function library and driver set for fast data packet processing, which can greatly improve data processing performance and throughput, and improve the work efficiency of data plane applications.
图2为相关技术提供的处理OAM报文的另一结构示意图。如图2所示,源设备101中的源设备DPDK 1014设置在内核空间,其它模块的设置方式与图1相同,目标设备102中的目标设备DPDK 1024设置在内核空间,其它模块的设置方式与图1相同。在图2中,源设备DPDK1014与源设备OAM1011、以及目标设备DPDK 1024与目标设备OAM1011之间可以通过内存直接进行数据共享,从而提高了OAM报文处理效率。然而,上述方案中DPDK需要特定的网卡支持,因此通用性不足。FIG. 2 is a schematic diagram of another structure for processing OAM packets provided by the related art. As shown in Figure 2, the source device DPDK 1014 in the
综上所述,相关技术中的OAM报文处理的灵活性不足,不能满足实际的OAM报文处理需求。To sum up, the OAM packet processing in the related art is not flexible enough to meet the actual OAM packet processing requirements.
基于以上问题,本申请实施例提供了一种报文处理装置、节点设备及方法,该报文处理装置可以设置在节点设备中。Based on the above problems, an embodiment of the present application provides a packet processing device, a node device and a method, and the packet processing device may be set in a node device.
在一种实施方式中,节点设备可以包括计算机设备,比如服务器设备或个人计算机设备;示例性地,节点设备可以包括物理机设备或虚拟机设备;示例性地,节点设备可以包括维护域(Maintenance Domain,MD)中的维护端点(Maintenance Association EndPoint,MEP)或维护中间点(Maintenance Association Intermediate Point,MIP);其中,MEP用于确定MD的范围和边界,是维护联盟(Maintenance Association,MA)的边缘节点,MD中可以配置多个MA;MIP位于MD内部,通过MEP之间部署的多个MIP可以提高MD网络的可管理性。In one embodiment, the node device may include a computer device, such as a server device or a personal computer device; Exemplarily, the node device may include a physical machine device or a virtual machine device; Exemplarily, the node device may include a maintenance domain (Maintenance Domain, MD) in the maintenance endpoint (Maintenance Association EndPoint, MEP) or maintenance intermediate point (Maintenance Association Intermediate Point, MIP); among them, MEP is used to determine the scope and boundaries of MD, is the Maintenance Association (Maintenance Association, MA) For edge nodes, multiple MAs can be configured in the MD; MIPs are located inside the MD, and the manageability of the MD network can be improved by deploying multiple MIPs between MEPs.
在一种实施方式中,节点设备可以包括具备数据包接收、发送以及处理功能的设备。In an implementation manner, the node device may include a device capable of receiving, sending and processing data packets.
图3为本申请实施例提供的报文处理装置3的结构示意图,如图3所示,该装置可以包括控制模块301以及报文处理模块302;其中:FIG. 3 is a schematic structural diagram of a
控制模块301与报文处理模块302之间建立有通信连接;通信连接不包括节点设备中用于处理网络数据包的协议栈;A communication connection is established between the
报文处理模块302中的至少部分处理单元,设置在节点设备的内核空间,用于接收并响应控制模块301通过通信连接发送的控制指令,发送检测报文至目标设备,并接收目标设备发送的回复报文;对回复报文进行处理,确定节点设备与目标设备之间的链路状态。At least part of the processing units in the
其中,检测报文以及回复报文包括OAM报文。Wherein, the detection message and the reply message include an OAM message.
示例性地,用户空间可以包括节点设备中的用户应用程序的运行空间。Exemplarily, the user space may include the running space of the user application program in the node device.
在一种实施方式中,控制模块301可以设置在节点设备的用户空间和/或内核空间;示例性地,控制模块301可以包括多个控制单元,多个控制单元中的至少部分控制单元可以设置在节点设备的用户空间。In one embodiment, the
在一种实施方式中,控制模块301以及报文处理模块302可以分别为能够实现控制功能以及报文处理功能的软件模块;示例性地,它们之间的通信连接可以包括软件模块之间的数据传输接口和/或函数调用关系;示例性地,上述通信连接可以包括能够实现两个模块之间数据传输的电性连接通道,本申请实施例对此不作限定。In one embodiment, the
在一种实施方式中,用于处理网络数据包的协议栈可以包括如图1以及图2中所示的源设备网络协议栈以及目标设备网络协议栈;示例性地,上述协议栈可以具备基于数据通信协议对源数据进行封装打包得到数据包、并基于数据通信协议对数据包进行解析得到源数据的功能;示例性地,上述数据通信协议可以包括标准通信协议,比如传输控制协议/网际协议(Transmission Control Protocol/Internet Protocol,TCP/IP)。In one embodiment, the protocol stack for processing network data packets may include a source device network protocol stack and a target device network protocol stack as shown in FIG. 1 and FIG. 2; The data communication protocol encapsulates and packs the source data to obtain a data packet, and analyzes the data packet based on the data communication protocol to obtain the source data; for example, the above-mentioned data communication protocol may include a standard communication protocol, such as Transmission Control Protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP/IP).
在一种实施方式中,节点设备的内核空间可以包括节点设备中内核进程运行和/或管理的空间。In an implementation manner, the kernel space of the node device may include a space in which a kernel process in the node device runs and/or manages.
在一种实施方式中,控制模块301发送的控制指令可以包括触发报文处理模块302启动运行、发送报文、接收报文、解析报文、报文处理周期、报文处理时长、以及报文处理所关联的目标报文中的至少一种指令数据。In one embodiment, the control instruction sent by the
在一种实施方式中,控制模块301还可以通过通信连接发送数据至报文处理模块302,报文处理模块302可以对其接收到的数据进行处理,从而生成检测报文。In one embodiment, the
在一种实施方式中,报文处理模块302可以包括多个处理单元,多个处理单元中的至少一个处理单元可以设置在内核空间;示例性地,报文处理模块302中的所有处理单元可以全部设置在内核空间。In one embodiment, the
在一种实施方式中,报文处理模块302可以在控制指令为发送报文的情况下,根据控制指令生成检测报文,并根据控制指令确定目标设备的设备信息,然后基于目标设备的设备信息将检测报文发送至目标设备;示例性地,报文处理模块302可以在发出检测报文之后切换至报文接收状态,并在接收到回复报文后,对回复报文进行处理,从而确定链路状态;示例性地,报文处理模块302可以在控制指令为报文侦听时,直接切换至报文接收状态从而接收回复报文或接收其它设备发送的检测报文。In one embodiment, the
在一种实施方式中,链路状态可以包括链路传输延迟、丢包率、节点设备与目标设备之间的链路数量以及各个链路所包含的设备节点数量中的至少一种;示例性地,链路状态确定之后,报文处理模块302可以通过通信连接发送至控制模块301,以供其管理或输出链路状态。In one embodiment, the link status may include at least one of link transmission delay, packet loss rate, number of links between the node device and the target device, and the number of device nodes included in each link; exemplary Specifically, after the link state is determined, the
在一种实施方式中,节点设备与目标设备可以位于同一MA或MD中;示例性地,节点设备与目标设备的类型可以相同,比如均为MEP,或者均为MIP;示例性地,节点设备与目标设备的类型可以不同,比如节点设备为MEP,而目标设备可以为MIP。In one embodiment, the node device and the target device may be located in the same MA or MD; for example, the node device and the target device may be of the same type, for example, both are MEP, or both are MIP; for example, the node device The type of the target device can be different, for example, the node device is an MEP, and the target device can be a MIP.
在一种实施方式中,检测报文以及回复报文可以包括OAM中的连接故障管理(Connectivity Fault Management,CFM)报文,其中,CFM用于实现网络端到端的连通性故障检测、故障通知以及故障定位功能,通过CFM能够监测整个网络的连通性,并且,CFM技术与保护倒换技术相结合,能够提高网络的可靠性。In one embodiment, the detection message and the reply message may include a connection fault management (Connectivity Fault Management, CFM) message in OAM, wherein, CFM is used to realize network end-to-end connectivity fault detection, fault notification and The fault location function can monitor the connectivity of the entire network through CFM, and the combination of CFM technology and protection switching technology can improve the reliability of the network.
由以上可知,本申请实施例提供的报文处理装置设置在节点设备中,控制模块与报文处理模块之间的通信连接不包括用于节点设备中设置的处理网络数据包的协议栈;报文处理模块中的至少部分处理单元设置在节点设备的内核空间,且能够接收并响应控制模块发送的控制指令后,发送检测报文至目标设备,并接收目标设备发送的回复报文,然后对回复报文进行处理,确定节点设备与目标设备之间的链路状态,而检测报文以及回复报文包括OAM报文。It can be seen from the above that the message processing device provided by the embodiment of the present application is set in the node device, and the communication connection between the control module and the message processing module does not include the protocol stack used for processing network data packets set in the node device; At least part of the processing units in the text processing module are set in the kernel space of the node device, and after being able to receive and respond to the control command sent by the control module, send a detection message to the target device, receive a reply message sent by the target device, and then The reply message is processed to determine the link state between the node device and the target device, and the detection message and the reply message include an OAM message.
由此,本申请实施例提供的报文处理装置中,报文处理模块中的至少部分处理单元设置在节点设备的内核空间,从而能够大大提高报文处理模块处理检测报文以及回复报文的效率;其次,控制模块与报文处理模块之间的通信连接不包括用于处理网络数据包的协议栈,从而能够减少控制模块与报文处理模块之间数据传输的环节,缩短二者之间指令透传以及数据传输的时延;并且,报文处理模块能够在接收到回复报文之后,直接对回复报文进行处理,确定节点设备与目标设备之间的链路状态,从而提高了对OAM报文处理的效率,提高了链路状态的确定效率。所以,本申请实施例提供的报文处理状态,不仅摆脱了对专用硬件芯片、特定网卡设备以及专用数据处理套件比如DPDK的依赖,而且相对于相关技术中的软件OAM报文处理方案,本申请实施例提供的报文处理装置的OAM报文处理的效率有所提高。Therefore, in the message processing device provided by the embodiment of the present application, at least part of the processing units in the message processing module are set in the kernel space of the node device, thereby greatly improving the efficiency of the message processing module in processing detection messages and reply messages. efficiency; secondly, the communication connection between the control module and the message processing module does not include a protocol stack for processing network data packets, thereby reducing the link of data transmission between the control module and the message processing module and shortening the time between the two. command transparent transmission and data transmission delay; and, after receiving the reply message, the message processing module can directly process the reply message to determine the link status between the node device and the target device, thereby improving the The efficiency of OAM message processing improves the determination efficiency of the link state. Therefore, the message processing state provided by the embodiment of the present application not only gets rid of the dependence on dedicated hardware chips, specific network card devices, and special data processing kits such as DPDK, but also compares to the software OAM message processing scheme in the related art. The efficiency of OAM packet processing by the packet processing device provided by the embodiment is improved.
图4为本申请实施例提供的报文处理装置的另一结构示意图,如图4所示,报文处理模块302包括报文发送单元3021以及报文接收单元3022;其中:FIG. 4 is another schematic structural diagram of a message processing device provided in the embodiment of the present application. As shown in FIG. 4 , the
报文发送单元3021,用于发送第一报文至目标设备;报文发送单元3021设置在内核空间;其中,第一报文至少包括LBM、CCM以及LTM;The
报文接收单元3022,用于接收回复报文,并获取回复报文携带的附加数据,基于附加数据确定链路状态。The
在一种实施方式中,报文发送单元3021可以对控制指令进行解析,在确定控制指令表示要求发送的第一报文为LBM的情况下,可以生成LBM并获取LBM中的时间戳,然后发送LBM至目标设备;示例性地,通过LBM可以实现二层Ping(macping/ethping)检测;示例性地,在第一报文为LBM的情况下,目标设备可以为至少一个设备。In one embodiment, the
图5为本申请实施例提供的报文发送单元发送LBM的结构示意图,如图5所示,第一MEP 501可以为节点设备,第一MEP 501发送的LBM可以经过第一MIP 502、以及第二MIP 503后,传输至第二MEP 504;示例性地,第二MEP 504可以为目标设备。示例性地,第一MEP 501的控制模块可以通过以下控制指令触发报文发送单元3021发送LBM:Fig. 5 is a schematic diagram of the structure of the message sending unit sending LBM provided by the embodiment of the present application. As shown in Fig. 5, the
Sending CFM LBM to b4:96:91:98:4e:2c。Sending CFM LBM to b4:96:91:98:4e:2c.
在上述控制指令中,b4:96:91:98:4e:2c可以表示目标设备即第二MEP 504的地址。In the above control instruction, b4:96:91:98:4e:2c may indicate the address of the target device, that is, the
报文发送单元3021在发送LBM时,可以输出以下信息:When sending the LBM, the
64bytes from b4:96:91:98:4e:2c:cfm_seq=2017870625time=0.267ms64bytes from b4:96:91:98:4e:2c:cfm_seq=2017870625time=0.267ms
64bytes from b4:96:91:98:4e:2c:cfm_seq=2017870626time=0.239ms64bytes from b4:96:91:98:4e:2c:cfm_seq=2017870626time=0.239ms
64bytes from b4:96:91:98:4e:2c:cfm_seq=2017870627time=0.234ms64bytes from b4:96:91:98:4e:2c:cfm_seq=2017870627time=0.234ms
在上述信息中,64bytes可以表示发送的LBM的数据量,cfm_seq可以表示每一LBM的报文标识;time可以表示每一LBM的时间戳;通过上述数据可以看出,节点设备即第一MEP501可以持续的向目标设备即第二MEP 504发送LBM。In the above information, 64bytes can represent the data volume of the LBM sent, cfm_seq can represent the message identifier of each LBM; time can represent the timestamp of each LBM; it can be seen from the above data that the node device, that is, the first MEP501 can Continuously send the LBM to the target device, that is, the
示例性地,报文发送单元3021可以通过eBPF流量分类器(Traffic Classifier,TC)为第一报文打时间戳,其中,TC是Linux网络处理流程中的一个eBPF钩子,能够挂载eBPF程序,它提供包括修改包、重路由(reroute)、以及丢弃包(drop)在内的多种功能,这些功能都会影响到内核的流量统计,因此也影响着数据包的排队规则(Queueing Discipline,QD);并且,eBPF TC为发送端最接近硬件的一环,因此能够提高时间戳设置效率,缩短OAM报文发送时间。Exemplarily, the
在实际应用中,CCM可以实现连通性检测功能,其中,连通性检测功能用于检测维护端点之间的连通状态,通常可以由MEP周期性的发送CCM,相同MA中的其它MEP以及MIP接收该报文,并且,若MEP在3.5个周期内未接收到CCM报文,则可以确定链路状态异常。In practical applications, CCM can realize the connectivity detection function, wherein, the connectivity detection function is used to detect the connectivity status between the maintenance endpoints, usually the MEP can periodically send the CCM, and other MEPs and MIPs in the same MA can receive the CCM. If the MEP does not receive the CCM message within 3.5 cycles, it can determine that the link status is abnormal.
在一种实施方式中,报文发送单元3021可以在确定控制指令表示发送的第一报文为CCM的情况下,可以获取CCM的时间信息,比如CCM中的时间戳,并将CCM发送出去;示例性地,此时的目标设备为多个设备,也就是说,报文发送单元3021可以广播CCM至多个设备;示例性地,报文发送单元3021可以组播CCM至MA中的至少一组设备。In one embodiment, the
示例性地,MA中任一设备比如MEP均可以作为MA中节点设备组播CCM的目标设备。Exemplarily, any device in the MA, such as an MEP, can serve as a target device for multicasting CCM by node devices in the MA.
图6为本申请实施例提供的报文发送单元发送CCM的结构示意图。如图6所示,第一MEP 501、第一MIP 502、第二MIP 503、第二MEP 504、第三MEP 505以及第三MIP 506可以位于同一MA中,其中,第一MEP 501、第二MEP 504以及第三MEP 505均可以作为发送CCM的节点设备,同时,第一MEP 501对应的目标设备可以包括第二MEP 504以及第三MEP 505,也就是说,MA中发送CCM的MEP的目标设备可以包括MA中除去发送CCM的MEP之外的其它MEP。FIG. 6 is a schematic structural diagram of sending a CCM by a message sending unit provided in an embodiment of the present application. As shown in Figure 6, the
示例性地,报文发送单元3021可以以指定时间间隔持续性的发送CCM。Exemplarily, the
在一种实施方式中,报文发送单元3021在确定控制指令表示发送的第一报文为LTM的情况下,可以获取LTM的时间信息,比如LTM中的时间戳,并将LTM发送出去;示例性地,此时的目标设备可以为多个设备,也就是说,报文发送单元3021可以广播LTM至多个设备;示例性地,MA中任一MEP均可以作为节点设备广播LTM的目标设备。In one embodiment, when the
图7为本申请实施例提供的报文发送单元发送LTM的结构示意图。如图7所示,第一MEP 501可以为发送LTM的节点设备,第二MEP 504以及第三MEP 505可以为接收LTM的目标设备。FIG. 7 is a schematic structural diagram of a message sending unit sending an LTM according to an embodiment of the present application. As shown in FIG. 7, the
示例性地,第一MEP 501的控制模块可以通过以下控制指令触发报文发送单元3021发送LTM至目标设备。Exemplarily, the control module of the
Sending CFM LTM probe to 78:ac:44:1b:33:90Sending CFM LTM probe to 78:ac:44:1b:33:90
其中,78:ac:44:1b:33:90可以表示任一目标设备的地址。Wherein, 78:ac:44:1b:33:90 may represent the address of any target device.
在一种实施方式中,报文接收单元3022可以设置在内核空间中。In an implementation manner, the
在一种实施方式中,回复报文可以是目标设备发送的,也可以是节点设备与目标设备之间的中间设备发送的,其中,中间设备可以包括如图5至图7中的第一MIP以及第二MIP。In one embodiment, the reply message may be sent by the target device, or may be sent by an intermediate device between the node device and the target device, where the intermediate device may include the first MIP as shown in Figures 5 to 7 and the second MIP.
在一种实施方式中,附加数据可以包括报文接收单元3022从回复报文中解析得到的数据,比如时间戳以及发送回复报文的设备的设备信息等。In an implementation manner, the additional data may include data parsed by the
在一种实施方式中,报文接收单元3022可以获取与回复报文对应的检测报文,然后基于检测报文以及附加数据确定链路状态;示例性地,报文接收单元3022可以基于检测报文中携带的至少部分数据以及附加数据确定链路状态;示例性地,检测报文中携带的至少部分数据可以包括节点设备的地址、检测报文的时间戳等数据。In one embodiment, the
在一种实施方式中,报文接收单元3022确定链路状态之后,可以通过通信连接发送至控制模块301。In an implementation manner, after determining the link status, the
在一种实施方式中,报文接收单元3022还可以在指定时间内未接收到回复报文的情况下,确定链路状态处于异常状态。In an implementation manner, the
由以上可知,本申请实施例提供的报文处理装置的报文处理模块包括报文发送单元以及报文接收单元,报文发送单元用于获取第一报文的时间信息,发送第一报文至目标设备;其中,第一报文至少包括LBM、CCM以及LTM,报文接收单元,用于接收回复报文,并获取回复报文中的附加数据,然后基于附加数据确定链路状态。As can be seen from the above, the message processing module of the message processing device provided in the embodiment of the present application includes a message sending unit and a message receiving unit, and the message sending unit is used to obtain the time information of the first message and send the first message To the target device; wherein, the first message includes at least LBM, CCM and LTM, and the message receiving unit is used to receive the reply message, obtain additional data in the reply message, and then determine the link state based on the additional data.
由此,本申请实施例提供的报文处理装置中报文处理模块所包含的报文发送单元,能够实现对多种CFM报文的灵活发送;并且,由于报文发送单元设置在节点设备的内核空间,因此还能实现对多种CFM报文的高效发送;与此同时,报文接收单元在接收到回复报文之后,能够直接基于回复报文中的附加数据确定链路状态,从而能够缩短链路状态确定的时间,提高链路状态确定的效率。Thus, the message sending unit included in the message processing module in the message processing device provided in the embodiment of the present application can realize the flexible sending of various CFM messages; and, since the message sending unit is arranged on the node device Kernel space, so it can also realize the efficient sending of various CFM messages; at the same time, after the message receiving unit receives the reply message, it can directly determine the link status based on the additional data in the reply message, so that it can The time for link state determination is shortened, and the efficiency of link state determination is improved.
基于前述实施例,本申请实施例中的报文接收单元3022,用于在回复报文为第二报文的情况下,基于附加数据中的时间信息,确定节点设备与目标设备之间的传输延时和/或丢包率;其中,第二报文至少包括CCM。Based on the foregoing embodiments, the
示例性地,第二报文可以为CCM的回复报文。Exemplarily, the second message may be a reply message of the CCM.
示例性地,报文接收单元3022可以在回复报文不为第二报文的情况下,不执行获取附加数据、以及确定节点设备与目标设备之间的传输延时和/或丢包率的操作。Exemplarily, when the reply message is not the second message, the
在一种实施方式中,报文接收单元3022在接收到CCM时,可以更新CCM的接收定时器,并根据CCM附加数据中的时间信息、以及发送CCM时的时间信息,确定节点设备与目标设备之间的数据包传输时间,即链路的传输延迟。In one embodiment, when the
示例性地,节点设备可以在通过报文发送单元3021发送CCM之后,通过控制模块301触发报文接收单元3022切换至CCM接收模式。Exemplarily, after the node device sends the CCM through the
示例性地,控制模块301可以输出以下指令以触发报文接收单元3022切换至CCM接收模式,在以下指令中,Listening on interface enol for CFM frames,表示等待CFM帧回复。Exemplarily, the
Listening on interface enol for CFM frames。Listening on interface enol for CFM frames.
示例性地,报文接收单元3022可以在接收CCM的过程中可以输出以下信息,其中,revd CCM:78:ac:44:1b:21:a8,level 0,MD"mdl",MA"mal"表示从名称为mal的MA中、名称为mdl的MD中、地址为78:ac:44:1b:21:a8的设备接收到CCM,且接收CCM的优先级level为0;其它命令行的含义与上述相同,此处不再赘述。Exemplarily, the
revd CCM:78:ac:44:1b:21:a8,level 0,MD"mdl",MA"mal"revd CCM:78:ac:44:1b:21:a8,level 0,MD"mdl",MA"mal"
revd CCM:9c:dc:71:c3:85:68,level 0,MD"md1",MA"mal"revd CCM:9c:dc:71:c3:85:68,level 0,MD"md1",MA"mal"
revd CCM:78;ac:44:1b:21:a8,level 0,MD"mdl",MA"mal"revd CCM:78;ac:44:1b:21:a8,level 0,MD"mdl",MA"mal"
revd CCM:9c:dc:71:c3:85:68,level 0,MD"mdl",MA"mal"revd CCM:9c:dc:71:c3:85:68,level 0,MD"mdl",MA"mal"
示例性地,如图6所示,由于CCM为组播报文,因此,节点设备比如第一MEP 501可以从至少一个目标设备接收到CCM,比如可以从上述命令行中ac:44:1b:21:a8对应的第二MEP504以及9c:dc:71:c3:85:68对应的第三MEP 505接收到CCM。在实际应用中,节点设备若在3.5个周期内未接收到CCM,则报文接收单元3022可以确定链路处于异常状态。Exemplarily, as shown in FIG. 6, since the CCM is a multicast message, a node device such as the
示例性地,报文接收单元3022可以对其发送的CCM以及接收到的CCM的数量进行统计,从而确定节点设备与目标设备之间的丢包率。Exemplarily, the
由以上可知,本申请实施例提供的报文处理装置的报文接收单元,在回复报文为第二报文的情况下,能够基于附加数据中的时间戳,确定节点设备与目标设备之间的传输延时和/或丢包率,且第二报文至少包括CCM。It can be seen from the above that the message receiving unit of the message processing device provided by the embodiment of the present application can determine the time between the node device and the target device based on the timestamp in the additional data when the reply message is the second message. transmission delay and/or packet loss rate, and the second packet includes at least CCM.
由此,本申请实施例提供的报文处理装置,能够通过报文接收单元直接接收CCM并基于CCM中的时间戳确定传输延时和/或丢包率,从而实现了对节点设备与目标设备之间链路状态的传输延时和/或丢包率的高效确定。Therefore, the message processing device provided by the embodiment of the present application can directly receive the CCM through the message receiving unit and determine the transmission delay and/or packet loss rate based on the timestamp in the CCM, thereby realizing the communication between the node device and the target device Efficient determination of the transmission delay and/or packet loss rate of the link state between them.
基于前述实施例,本申请实施例提供的报文处理装置中,报文接收单元3022用于在回复报文为第三报文的情况下,基于附加数据中的时间信息,确定节点设备与目标设备之间的传输延时;其中,第三报文至少包括LBR。Based on the aforementioned embodiments, in the message processing device provided by the embodiment of the present application, the
示例性地,若报文接收单元3022接收到的回复报文不为第三报文,则可以不执行确定设备节点与目标设备之间的传输延时的操作。Exemplarily, if the reply packet received by the
在实际应用中,LBR是LBM的回复报文。In practical applications, the LBR is a reply packet of the LBM.
在一种实施方式中,发送LBR的设备节点可以包括目标设备,还可以包括发送LBR的设备节点与目标设备之间的中间设备,比如,在图5中,第一MEP 501可以为发送LBM的设备节点,第二MEP 504可以为目标设备,在第一MEP 501与第二MEP 504之间还设置有第一MIP 502以及第二MIP 503,这两个节点设备可以为中间设备,这两个中间设备接收到LBM之后都可以向第一MEP 501发送LBR,并且,这两个中间设备还可以同时转发LBM至下一级节点,直至LBM到达第二MEP 504,而第二MEP 504在接收到LBM时,也可以通过第一MIP 502以及第二MIP 503向第一MEP 501发送LBR。In one embodiment, the device node sending the LBR may include the target device, and may also include an intermediate device between the device node sending the LBR and the target device. For example, in FIG. 5, the
示例性地,报文接收单元3022在接收到LBR时,可以从LBR的附加数据中获取LBR的标识信息以及时间信息,并基于标识信息确定与LBR对应的LBM,然后基于与LBR对应的LBM的时间信息、以及LBR携带的时间信息,确定节点设备与目标设备之间的传输延时,还可以确定节点设备与中间设备之间的传输延时,从而得到从节点设备到目标设备之间链路的整体传输延时分布状态。Exemplarily, when the
由以上可知,本申请实施例提供的报文处理装置中,报文接收单元在回复报文为第三报文的情况下,能够基于附加数据中的时间信息,确定设备节点与目标设备之间的数据传输延时,其中,第三报文包括LBR。It can be seen from the above that in the message processing device provided by the embodiment of the present application, when the reply message is the third message, the message receiving unit can determine the distance between the device node and the target device based on the time information in the additional data. The data transmission delay of , wherein, the third packet includes LBR.
由此,本申请实施例提供的报文处理装置,能够通过报文接收单元高效快捷的实现对LBR的处理,从而能更高效的确定节点设备与目标设备之间的数据传输延时。Therefore, the message processing device provided by the embodiment of the present application can efficiently and quickly realize the processing of LBR through the message receiving unit, so as to more efficiently determine the data transmission delay between the node device and the target device.
基于前述实施例,本申请实施例提供的报文处理装置中,报文接收单元3022,用于在回复报文为第四报文的情况下,基于附加数据中的设备信息,确定节点设备与目标设备之间的链路路径信息;其中,第四报文至少包括LTR;Based on the foregoing embodiments, in the message processing device provided in the embodiment of the present application, the
报文接收单元3022,还用于在接收到第五报文的情况下,获取第一地址以及第二地址,并设置第五报文的源地址为第一地址,设置第五报文的目的地址为第二地址,设置第五报文的报文类型为LTR,通过XDP发送LTR;其中,第五报文至少包括LTM;第一地址包括节点设备的地址,第二地址包括发送LTM的设备的地址。The
示例性地,若报文接收单元3022接收到的回复报文不为第四报文,则可以不执行基于附加数据中的设备信息,确定节点设备与目标设备之间的链路路径信息的操作。For example, if the reply message received by the
示例性地,若报文接收单元3022接收到的报文不为第五报文,则可以不执行获取第一地址以第二地址,并设置第五报文的原地址为第一地址,设置第五报文的目的地址为第二地址的操作。Exemplarily, if the message received by the
在实际应用中,LTR为LTM的回复报文。In practical applications, the LTR is the reply packet of the LTM.
在一种实施方式中,报文接收单元3022可以从附加数据中获取并记录LTR报文的存活时间(Time To Live,TTL)、以及Replay Action等信息,并根据TTL以及Reply Action确定节点设备与周边设备之间的链路路径信息,比如节点设备与目标设备之间的通信链路是否连通、节点设备与目标设备之间是否存在中间设备以及中间设备的数量和类型等。In one embodiment, the
需要说明的是,LTM为组播报文,而LTR为单播报文,比如在图7中,第一MEP 501可以通过中间设备发送LTM至第二MEP 504以及第三MEP 505,并且,在LTM传输过程中,与第二MEP 504关联的中间设备可以包括第一MIP 502以及第二MIP 503,第三MIP 506由于不具备LTM处理功能而将LTM直接透传至第二MEP 504,也就是说,第一MEP 501可以组播LTM至至少一个MEP,而中间设备、第二MEP 504以及第三MEP 505在发送LTR时,是单播操作,也就是说,上述节点设备仅将LTR经过中间设备发送至第一MEP 501,而不会将LTR发送至其它节点设备。It should be noted that LTM is a multicast message, and LTR is a unicast message. For example, in FIG. During the transmission process, the intermediate devices associated with the
在一种实施方式中,第一地址可以包括节点设备的网络协议(InternetProtocol,IP)地址或媒体存取控制位址(Media Access Control,MAC),示例性地,第二地址可以是从第五报文中解析得到的;第二地址可以包括发送LTM的设备的IP地址或MAC地址。In one embodiment, the first address may include an Internet Protocol (Internet Protocol, IP) address or a Media Access Control address (Media Access Control, MAC) of the node device. Exemplarily, the second address may be from the fifth obtained by parsing the message; the second address may include the IP address or MAC address of the device sending the LTM.
在一种实施方式中,报文接收单元3022在接收到LTM时,报文接收单元3022所在的节点设备可以为目标设备,而主动发送LTM的节点设备可以为源设备;示例性地,发送LTM至目标设备的设备节点可以包括MA中的MEP,还可以包括MA中的MIP,其中,接收LTM的设备的节点级别与发送LTM的节点的节点级别相同。In one embodiment, when the
示例性地,同一节点设备发送的LTM可以分别路由至不同的设备,比如图7中,在第一MEP 501发送LTM的过程中,第一MIP 502以及第二MIP 503可以接收到LTM,并且,第一MIP502接收到LTM时可以发送至第二MIP 503,而第二MIP 503可以通过第三MIP 506向第二MEP504发送LTM,由于第三MIP 506不支持LTM处理功能,因此,第三MIP 506收到节点设备发送的LTM时,直接将其透传至第二MEP 504,在上述过程中,第一MIP 502、第二MIP 503以及第二MEP 504,均可以为设置有报文接收单元3022的节点设备;同理,图7中的第三MEP 505也可以为设置有报文接收单元3022的节点设备。Exemplarily, the LTMs sent by the same node device can be respectively routed to different devices. For example, in FIG. 7, in the process of sending the LTM by the
示例性地,在网络中,发送LTM的节点设备可以包括多个,且多个不同的节点设备发送的LTM可以路由至同一节点设备,比如图7中的第二MEP 504以及第三MEP 505可以同时发送LTM至第一MEP 501;示例性地,发送LTM的目标设备与接收LTM的节点设备位于同一MA或不同的MA中。Exemplarily, in the network, there may be multiple node devices sending LTMs, and the LTMs sent by multiple different node devices may be routed to the same node device, for example, the
示例性地,在设置LTM的源地址以及目的地址、且修改LTM的报文类型为LTR之后,可以通过XDP按照LTM的发送路径将LTR发送出去。Exemplarily, after the source address and destination address of the LTM are set, and the packet type of the LTM is changed to LTR, the LTR can be sent through XDP according to the sending path of the LTM.
其中,XDP是Linux网络处理流程中的伯克利包过滤器(Berkeley Packet Filter,BPF)的通用执行引擎(Extended Berkeley Packet Filter,eBPF),其基于Linux系统运行,通过快速数据包处理的函数库以及驱动集合,能够极大的提高数据处理性能和吞吐量,从而提高数据平面应用程序的数据处理效率。其中,BFP是一种网络过滤器,其升级为eBPF之后不在仅仅用于网络分析,而发展成为了包括开发性能分析、系统追踪、网络优化等多种类型功能的工具和平台,Linux内核会装载eBPF。Among them, XDP is the general execution engine (Extended Berkeley Packet Filter, eBPF) of the Berkeley Packet Filter (BPF) in the Linux network processing flow. Collection can greatly improve data processing performance and throughput, thereby improving the data processing efficiency of data plane applications. Among them, BFP is a network filter. After it is upgraded to eBPF, it is not only used for network analysis, but has developed into a tool and platform including development performance analysis, system tracking, network optimization and other types of functions. The Linux kernel will load eBPF.
由以上可知,本申请实施例提供的报文处理装置中的报文接收单元,在接收到的回复报文为LTR时,能够基于附加数据中的设备信息,确定节点设备与目标设备之间的链路路径信息,由此,本申请实施例提供的报文处理装置,能够通过报文接收单元快速而高效的确定任一节点设备与目标设备之间的链路路径信息;报文接收单元,能够对其所接收到的LTM的源地址以及目的地址进行快速设置,并能实现对LTM报文类型的快速修改,从而实现了对LTM的快速转换;并且,通过XDP将LTR快速发送,还能够实现了LTR的高效发送处理,从而实现了通过报文接收单元对LTM的高效处理。It can be seen from the above that the message receiving unit in the message processing device provided by the embodiment of the present application can determine the connection between the node device and the target device based on the device information in the additional data when the received reply message is an LTR. Link path information, thus, the message processing device provided by the embodiment of the present application can quickly and efficiently determine the link path information between any node device and the target device through the message receiving unit; the message receiving unit, It can quickly set the source address and destination address of the received LTM, and can quickly modify the type of LTM message, so as to realize the fast conversion of LTM; and, by quickly sending LTR through XDP, it can also The efficient sending processing of the LTR is realized, thereby realizing the efficient processing of the LTM through the message receiving unit.
基于前述实施例,本申请实施例提供的报文处理装置中,报文接收单元3022,用于在接收到第六报文的情况下,获取第一地址以及第三地址,并设置第六报文的源地址为第一地址,设置第六报文的目的地址为第三地址,设置第六报文的报文类型为LBR,通过XDP发送LBR。Based on the foregoing embodiments, in the message processing device provided in the embodiment of the present application, the
其中,第六报文包括LBM,第一地址包括节点设备的地址;第三地址包括发送LBM的设备的地址。Wherein, the sixth message includes the LBM, the first address includes the address of the node device, and the third address includes the address of the device sending the LBM.
示例性地,若报文接收单元3022接收到的报文不为第六报文,则可以不执行获取第一地址以及第三地址的操作。Exemplarily, if the packet received by the
在一种实施方式中,第三地址可以包括发送LTM的设备的IP地址或MAC地址,本申请实施例对此不作限定。In an implementation manner, the third address may include an IP address or a MAC address of the device sending the LTM, which is not limited in this embodiment of the present application.
示例性地,当报文接收单元3022接收LBM并将LBM的报文类型修改为LBR时,报文接收单元3022所在的节点设备可以为图5中的第一MIP 502、第二MIP 503以及第二MEP 504;示例性地,第一MEP 501可以为发送LBM的源设备,当第一MEP 501发送LBM之后,可以根据802.1ag MAC ping操作时的回显结果,获取第一MIP 502、第二MIP 503以及第二MEP 504发送的LBR中的时间信息,并根据该时间信息确定第一MEP 501与第二MEP 504之间的各个节点设备之间的传输延时。Exemplarily, when the
由以上可知,本申请实施例提供的报文处理装置中的报文接收单元,在接收到LBM后,能够实时的为LBM修改源地址以及目的地址,还能够修改LBM的报文类型为LBR并通过XDP快速发送LBR,从而为网络中的任一节点设备快速精准的确定网络传输延时提供了数据支持。As can be seen from the above, after receiving the LBM, the message receiving unit in the message processing device provided by the embodiment of the present application can modify the source address and the destination address for the LBM in real time, and can also modify the message type of the LBM to LBR and The LBR is sent quickly through XDP, which provides data support for any node device in the network to quickly and accurately determine the network transmission delay.
图8为本申请实施例提供的第一设备与第二设备之间OAM报文传输的结构示意图。如图8所示,第一设备801可以为前述实施例中的节点设备,第二设备802可以为前述实施例中的目标设备比如MEP,还可以为中间设备比如MIP。FIG. 8 is a schematic structural diagram of an OAM packet transmission between a first device and a second device according to an embodiment of the present application. As shown in FIG. 8 , the
示例性地,第一设备801的用户空间可以设置有第一控制模块8011,其中,第一控制模块8011可以为前述实施例中的控制模块,内核空间设置有第一发送单元8012、第一接收单元8013、第一协议栈8014以及第一驱动模块8015;其中,第一发送单元8012以及第一接收单元8013可以分别为前述实施例中的报文发送单元以及报文接收单元;第一协议栈8014可以为第一设备801中设置的网络协议栈;第一驱动模块8015可以为第一设备801中设置的网络驱动模块。Exemplarily, the user space of the
示例性地,第二设备802中的第二控制模块8021、第二发送单元8022、第二接收单元8023、第二协议栈8024以及第二驱动模块8025,分别与第一控制模块8011、第一发送单元8012、第一接收单元8013、第一协议栈8014以及第一驱动模块8015的作用相同,此处不再赘述。Exemplarily, the
示例性地,第一设备801的用户空间中设置的第一控制模块8011可以绕过第一协议栈8014直接控制第一发送单元8012经由第一驱动模块8015,通过第一接收单元8013中集成的XDP比如XDP_eBPF发送LBM、CCM以及LTM至第二设备802。Exemplarily, the
示例性地,第二设备802的第二接收单元8023接收到CCM时,能够基于其接收到CCM的时间以及其之前发送的CCM中的时间戳,确定第一设备801与第二设备802之间的数据传输延时,还可以为CCM设置时间信息,并将CCM发送至第一设备801,以供第一设备801基于其所发送的CCM以及接收到的CCM,确定其与第二设备802之间的传输延时和/或丢包率等。Exemplarily, when the
示例性地,第二接收单元8023接收到LBM时,能够设置LBM的报文类型为LBR,并将LBM的目标地址设置为第一设备801的地址,而将LBM的源地址设置为第二设备802的地址,并通过第二接收单元8023中的XDP发送LBR至第一设备801;示例性地,第一接收单元8013接收到第二设备802发送的LBR后,能够根据其发送LBM的时间信息以及LBR中的时间戳,确定其与第二设备802之间的传输延时。Exemplarily, when the
示例性地,第二接收单元8023接收到LTM时,可以将LTM的报文类型修改为LTR,并设置LTR的源地址为第二设备802的地址,设置LTR的目的地址为第一设备801的地址,然后通过XDP将LTR发送至第一设备801;示例性地,第一接收单元8013接收到LTR时,能够根据LTR中的TTL以及Action Reply确定第一设备801与第二设备802之间的链路路径信息。Exemplarily, when the
示例性地,若第二设备802为第一设备801的目标设备,则第二设备802收到OAM报文后,可以生成回复报文并发送至第一设备801;示例性地,若第二设备802为中间设备比如前述实施例中的MIP,则第二设备802可以将第一设备801发送的报文向目标设备方向的节点设备传输,还可以同时向第一设备发送回复报文。Exemplarily, if the
示例性地,若第一接收单元8013、第一发送单元8012、第二发送单元8022以及第二接收单元8023接收到的报文不为OAM报文,则它们可以不对报文做任何处理,而将报文透传至报文所指示的目标设备,或目标应用。Exemplarily, if the message received by the
由以上可知,由于控制模块设置在用户空间,而与报文实际发送以及接收相关的报文处理模块比如报文发送单元以及报文接收单元设置在内核空间,并且报文发送可以通过XDP等方式实现,从而实现了绕开协议栈对OAM数据包的快速发送、接收以及处理等操作。It can be seen from the above that since the control module is set in the user space, the message processing modules related to the actual sending and receiving of the message, such as the message sending unit and the message receiving unit, are set in the kernel space, and the message sending can be done through XDP, etc. Realization, thereby realizing the operations such as fast sending, receiving and processing of the OAM data packet by bypassing the protocol stack.
基于前述实施例,本申请实施例提供的处理装置中,报文接收单元包括eBFP XDP;控制模块,用于加载eBFP XDP至节点设备的网卡。Based on the aforementioned embodiments, in the processing device provided by the embodiments of the present application, the message receiving unit includes eBFP XDP; a control module, configured to load the eBFP XDP to the network card of the node device.
在一种实施方式中,控制模块可以获取节点设备的网卡的性能参数信息,并根据性能参数信息确定节点设备的网卡支持XDP卸载模式(offload)功能时,将eBFP XDP加载到节点设备的网卡。In one embodiment, the control module can obtain the performance parameter information of the network card of the node device, and when determining that the network card of the node device supports the XDP offload mode (offload) function according to the performance parameter information, load the eBFP XDP to the network card of the node device.
由以上可知,本申请实施例提供的报文处理装置,能够将报文接收单元的eBFPXDP加载到节点设备的网卡,由于eBPF XDP为节点设备中最接近硬件的一环,并且能够对报文直接操作,零拷贝,能够减少数据拷贝过程中的资源开销,从而能够进一步提高报文处理装置收发报文的处理效率。It can be seen from the above that the message processing device provided by the embodiment of the present application can load the eBFPXDP of the message receiving unit to the network card of the node device, because eBPF XDP is the link closest to the hardware in the node device, and can directly process the message The operation, zero copy, can reduce the resource overhead in the data copy process, thereby further improving the processing efficiency of the message processing device for sending and receiving messages.
基于前述实施例,本申请实施例提供的报文处理装置中,报文接收单元设置在用户空间,报文处理模块还包括内核空间设置的报文过滤单元,用于通过AF_XDP将OAM报文发送至报文接收单元。Based on the aforementioned embodiments, in the message processing device provided by the embodiment of the present application, the message receiving unit is set in the user space, and the message processing module also includes a message filtering unit set in the kernel space, which is used to send the OAM message through AF_XDP to the message receiving unit.
图9为本申请实施例提供的第一设备与第二设备之间OAM报文传输的另一结构示意图。图9中与图8相同名称的单元以及模块不再重复介绍。FIG. 9 is another schematic structural diagram of OAM message transmission between the first device and the second device provided by the embodiment of the present application. Units and modules with the same names as those in FIG. 8 in FIG. 9 will not be described repeatedly.
如图9所示,第一接收单元8013以及第二接收单元8023分别设置在第一设备801的用户空间以及第二设备802的用户空间;并且,第一设备801中增加了第一过滤单元8016,第二设备802中增加了第二过滤单元8026;其中,第一过滤单元8016以及第二过滤单元8026可以为上述报文过滤单元。As shown in Figure 9, the
示例性地,第一过滤单元8016以及第二过滤单元8026可以在接收到报文时,对报文类型进行判断,若报文为OAM类型,比如LTM、CCM、LBR以及LTR时,可以将OAM报文透传至第一接收单元8013以及第二接收单元8023,从而供第一接收单元8013以及第二接收单元8023对OAM报文进行进一步的处理;示例性地,若报文不为OAM类型,则可以透传报文至第一设备801以及第二设备802中的目标应用。Exemplarily, the
示例性地,第一过滤单元8016以及第二过滤单元8026可以通过AF-XDP socket分别将OAM报文传输至第一接收单元8013以及第二接收单元8023。其中,AF_XDP与AF_INET以及AF_PACKET一样,属于Address Family的一种,AF_XDP socket通过XDP直接将网卡接收到的数据包重新路由到用户空间,从而实现了绕过网络协议栈与用户空间的快速数据传输,因此能够实现网卡与用户空间之间的高性能的网络报处理,在实际应用中,AF_XDP为XDP的用户态接口。Exemplarily, the
由以上可知,本申请实施例提供的报文处理装置,在将报文接收单元设置在用户空间时,依然可以通过内核空间中设置的报文过滤单元接收OAM报文,由于报文过滤单元设置在内核空间,且其与报文接收单元之间可以通过AF_XDP绕过协议栈进行快速的数据传输,从而能够实现OAM报文的快速接收处理。As can be seen from the above, the message processing device provided by the embodiment of the present application can still receive OAM messages through the message filtering unit set in the kernel space when the message receiving unit is set in the user space. In the kernel space, and between it and the message receiving unit, AF_XDP can be used to bypass the protocol stack for fast data transmission, so as to realize fast reception and processing of OAM messages.
基于前述实施例,本申请实施例提供的报文处理装置中,控制模块可以在确定节点设备的网卡为指定网卡的情况下,加载报文处理模块至网卡。Based on the foregoing embodiments, in the message processing device provided in the embodiments of the present application, the control module may load the message processing module to the network card when it is determined that the network card of the node device is a designated network card.
示例性地,控制模块在确定节点设备的网卡不为指定网卡的情况下,可以通过前述实施例提供的方法实现报文处理功能。Exemplarily, when the control module determines that the network card of the node device is not the designated network card, it may implement the message processing function through the method provided in the foregoing embodiments.
示例性地,指定网卡可以包括具备OAM报文高效收发功能,且能够对OAM报文进行快速处理,从而确定链路状态的网卡;示例性地,指定网卡可以包括智能网卡;示例性地,报文处理模块加载至智能网卡之后,报文处理模块的报文处理逻辑可以通过智能网卡中的微码实现。Exemplarily, the specified network card may include a network card that has the function of efficiently sending and receiving OAM messages, and can quickly process the OAM message, thereby determining the link state; Exemplarily, the specified network card may include an intelligent network card; After the message processing module is loaded into the smart network card, the message processing logic of the message processing module can be realized through the microcode in the smart network card.
由以上可知,本申请实施例提供的报文处理装置,在节点设备的网卡为指定网卡的情况下,能够加载报文处理模块至网卡,在指定网卡为智能网卡的情况下,借助于智能网卡高效的数据处理能力以及智能的数据判断逻辑,能够进一步提高OAM报文处理的效率和智能性。As can be seen from the above, the message processing device provided by the embodiment of the present application can load the message processing module to the network card when the network card of the node device is a designated network card, and can load the message processing module to the network card when the designated network card is a smart network card. Efficient data processing capabilities and intelligent data judgment logic can further improve the efficiency and intelligence of OAM packet processing.
基于前述实施例,本申请实施例还提供了一种节点设备10,图10为本申请实施例提供的节点设备10的结构示意图,如图10所示,该节点设备可以包括如前任一实施例所提供的报文处理装置3。Based on the foregoing embodiments, the embodiment of the present application also provides a
由以上可知,本申请实施例提供的节点设备包括报文处理装置,报文处理装置中报文处理模块的至少部分处理单元设置在节点设备的内核空间,从而能够大大提高报文处理模块处理检测报文以及回复报文的效率;其次,控制模块与报文处理模块之间的通信连接不包括用于处理网络数据包的协议栈,从而能够减少控制模块与报文处理模块之间数据传输的环节,缩短二者之间指令透传以及数据传输的时延;并且,报文处理模块能够在接收到回复报文之后,直接对回复报文进行处理,确定节点设备与目标设备之间的链路状态,从而提高了对OAM报文处理的效率,提高了链路状态的确定效率。It can be seen from the above that the node device provided by the embodiment of the present application includes a message processing device, and at least part of the processing units of the message processing module in the message processing device are set in the kernel space of the node device, so that the processing and detection of the message processing module can be greatly improved. The efficiency of the message and the reply message; secondly, the communication connection between the control module and the message processing module does not include a protocol stack for processing network data packets, thereby reducing the data transmission between the control module and the message processing module. link, shortening the time delay of instruction transparent transmission and data transmission between the two; and, after receiving the reply message, the message processing module can directly process the reply message to determine the link between the node device and the target device. link state, thereby improving the efficiency of OAM packet processing and improving the efficiency of link state determination.
基于前述实施例,本申请实施例还提供了一种报文处理方法,该方法应用于设置在节点设备中的报文处理装置;报文处理装置包括控制模块以及报文处理模块;控制模块与报文处理模块之间建立有通信连接;通信连接不包括节点设备中用于处理网络数据包的协议栈;报文处理模块的至少部分处理单元,设置在节点设备的内核空间。图11为本申请实施例提供的报文处理方法的流程示意图,如11所示,该方法可以包括以下流程:Based on the aforementioned embodiments, the embodiment of the present application also provides a message processing method, which is applied to a message processing device arranged in a node device; the message processing device includes a control module and a message processing module; the control module and the message processing module A communication connection is established between the message processing modules; the communication connection does not include a protocol stack for processing network data packets in the node device; at least part of the processing units of the message processing module are set in the kernel space of the node device. FIG. 11 is a schematic flow diagram of a message processing method provided in an embodiment of the present application. As shown in 11, the method may include the following flow:
步骤1101、报文处理模块接收并响应控制模块通过通信连接发送的控制指令,发送检测报文至目标设备,并接收目标设备发送的回复报文。
步骤1102、报文处理模块对回复报文进行处理,确定节点设备与目标设备之间的链路状态。
其中,检测报文以及回复报文包括OAM报文。Wherein, the detection message and the reply message include an OAM message.
在一种实施方式中,报文处理装置可以为前述任一实施例提供的报文处理装置。In an implementation manner, the packet processing apparatus may be the packet processing apparatus provided in any of the preceding embodiments.
在一些实施例中,报文处理模块包括报文发送单元以及报文接收单元;其中:In some embodiments, the message processing module includes a message sending unit and a message receiving unit; wherein:
报文发送单元发送第一报文至目标设备;报文发送单元设置在内核空间;其中,第一报文至少包括LBM、CCM以及LTM;The message sending unit sends the first message to the target device; the message sending unit is set in the kernel space; wherein, the first message includes at least LBM, CCM and LTM;
报文接收单元接收回复报文,并获取回复报文携带的附加数据,基于附加数据确定链路状态。The message receiving unit receives the reply message, obtains additional data carried in the reply message, and determines the link state based on the additional data.
在一些实施例中,报文接收单元在回复报文为第二报文的情况下,基于附加数据中的时间信息,确定节点设备与目标设备之间的传输延时和/或丢包率;其中,第二报文至少包括CCM。In some embodiments, when the reply message is the second message, the message receiving unit determines the transmission delay and/or packet loss rate between the node device and the target device based on the time information in the additional data; Wherein, the second packet includes at least CCM.
在一些实施例中,报文接收单元在回复报文为第三报文的情况下,基于附加数据中的时间信息,确定节点设备与目标设备之间的传输延时;其中,第三报文至少包括LBR。In some embodiments, when the reply message is the third message, the message receiving unit determines the transmission delay between the node device and the target device based on the time information in the additional data; wherein, the third message Include at least LBR.
在一些实施例中,报文接收单元在回复报文为第四报文的情况下,基于附加数据中的设备信息,确定节点设备与目标设备之间的链路路径信息;其中,第四报文至少包括LTR;In some embodiments, when the reply message is the fourth message, the message receiving unit determines the link path information between the node device and the target device based on the device information in the additional data; wherein, the fourth message The text includes at least LTR;
报文接收单元在接收到第五报文的情况下,获取第一地址以及第二地址,并设置第五报文的源地址为第一地址,设置第五报文的目的地址为第二地址,设置第五报文的报文类型为LTR,通过XDP发送LTR;其中,第五报文至少包括LTM;第一地址包括节点设备的地址;第二地址包括发送LTM的设备的地址。When the message receiving unit receives the fifth message, it obtains the first address and the second address, and sets the source address of the fifth message as the first address, and sets the destination address of the fifth message as the second address , set the message type of the fifth message to LTR, and send the LTR through XDP; wherein, the fifth message includes at least the LTM; the first address includes the address of the node device; the second address includes the address of the device sending the LTM.
在一些实施例中,报文接收单元在接收到第六报文的情况下,获取第一地址以及第三地址,并设置第六报文的源地址为第一地址,设置第六报文的目的地址为第三地址,设置第六报文的报文类型为LBR,通过XDP发送LBR;其中,第六报文至少包括LBM;第一地址包括节点设备的地址;第三地址包括发送LBM的设备的地址。In some embodiments, when the message receiving unit receives the sixth message, it obtains the first address and the third address, and sets the source address of the sixth message as the first address, and sets the source address of the sixth message as The destination address is the third address, the message type of the sixth message is set as LBR, and the LBR is sent through XDP; wherein, the sixth message includes at least the LBM; the first address includes the address of the node device; the third address includes the address of the sending LBM The address of the device.
在一些实施例中,报文接收单元包括伯克利包过滤器的eBPF XDP;控制模块加载eBPF XDP至节点设备的网卡。In some embodiments, the message receiving unit includes eBPF XDP of the Berkeley packet filter; the control module loads the eBPF XDP to the network card of the node device.
在一些实施例中,报文接收单元以及控制模块设置在用户空间;报文处理模块还包括内核空间设置的报文过滤单元,报文过滤单元通过AF_XDP将OAM报文发送至报文接收单元。In some embodiments, the message receiving unit and the control module are set in the user space; the message processing module further includes a message filtering unit set in the kernel space, and the message filtering unit sends the OAM message to the message receiving unit through AF_XDP.
本申请实施例提供的报文处理方法中,报文处理模块的至少部分处理单元设置在节点设备的内核空间,从而能够大大提高报文处理模块处理检测报文以及回复报文的效率;其次,控制模块与报文处理模块之间的通信连接不包括用于处理网络数据包的协议栈,从而能够减少控制模块与报文处理模块之间数据传输的环节,缩短二者之间指令透传以及数据传输的时延;并且,报文处理模块能够在接收到回复报文之后,直接对回复报文进行处理,确定节点设备与目标设备之间的链路状态,从而提高了对OAM报文处理的效率,提高了链路状态的确定效率。In the message processing method provided in the embodiment of the present application, at least part of the processing units of the message processing module are set in the kernel space of the node device, thereby greatly improving the efficiency of the message processing module in processing detection messages and replying messages; secondly, The communication connection between the control module and the message processing module does not include a protocol stack for processing network data packets, thereby reducing the link of data transmission between the control module and the message processing module, shortening the instruction transparent transmission and The delay of data transmission; and, after receiving the reply message, the message processing module can directly process the reply message to determine the link state between the node device and the target device, thereby improving the OAM message processing The efficiency improves the link state determination efficiency.
所以,本申请实施例提供的报文处理方法,不仅摆脱了对专用硬件芯片、特定网卡设备以及专用数据处理套件比如DPDK的依赖,而且相对于相关技术中的软件OAM报文处理方案,本申请实施例提供的报文处理方法的OAM报文处理的效率有所提高。Therefore, the message processing method provided by the embodiment of the present application not only gets rid of the dependence on dedicated hardware chips, specific network card devices, and special data processing kits such as DPDK, but also compared with the software OAM message processing scheme in the related art, the present application The efficiency of OAM packet processing in the packet processing method provided by the embodiment is improved.
基于前述实施例,本申请实施例还提供了一种计算机可读存储介质,该存储介质中存储有计算机程序,该计算机程序被电子设备的处理器执行时,能够实现如前所述的报文处理方法。Based on the aforementioned embodiments, this embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor of an electronic device, it can realize the aforementioned message Approach.
上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。The above descriptions of the various embodiments tend to emphasize the differences between the various embodiments, the same or similar points can be referred to each other, and for the sake of brevity, details are not repeated herein.
本申请所提供的各方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the various method embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments.
本申请所提供的各产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the various product embodiments provided in this application can be combined arbitrarily without conflict to obtain new product embodiments.
本申请所提供的各方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in each method or device embodiment provided in this application can be combined arbitrarily without conflict to obtain a new method embodiment or device embodiment.
需要说明的是,上述计算机可读存储介质可以是只读存储器(Read Only Memory,ROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性随机存取存储器(Ferromagnetic Random Access Memory,FRAM)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(Compact Disc Read-Only Memory,CD-ROM)等存储器;也可以是包括上述存储器之一或任意组合的各种电子设备,如移动电话、计算机、平板设备、个人数字助理等。It should be noted that the above-mentioned computer-readable storage medium may be a read-only memory (Read Only Memory, ROM), a programmable read-only memory (Programmable Read-Only Memory, PROM), an erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), Magnetic Random Access Memory (Ferromagnetic Random Access Memory, FRAM), Flash Memory (Flash Memory) , magnetic surface memory, optical disc, or Compact Disc Read-Only Memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above memories, such as mobile phones, computers, tablets, etc. devices, personal digital assistants, and more.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件节点的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所描述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware nodes, and of course also by hardware, but in many cases the former is better implementation. Based on such an 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, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present application.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211412702.1A CN115941540B (en) | 2022-11-11 | 2022-11-11 | Message processing device, node equipment and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211412702.1A CN115941540B (en) | 2022-11-11 | 2022-11-11 | Message processing device, node equipment and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115941540A true CN115941540A (en) | 2023-04-07 |
CN115941540B CN115941540B (en) | 2024-12-03 |
Family
ID=86653174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211412702.1A Active CN115941540B (en) | 2022-11-11 | 2022-11-11 | Message processing device, node equipment and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115941540B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040165534A1 (en) * | 2002-07-25 | 2004-08-26 | Claseman George R. | Operations, administration and maintenance (OAM) systems and methods for packet switched data networks |
WO2008055426A1 (en) * | 2006-11-09 | 2008-05-15 | Huawei Technologies Co., Ltd. | Method, system and node apparatus for transmitting ethernet connectibvity fault management message |
CN103368849A (en) * | 2013-07-05 | 2013-10-23 | 盛科网络(苏州)有限公司 | OAM (Operations, Administration and Management) message processing method and device |
CN103716172A (en) * | 2012-09-28 | 2014-04-09 | 中兴通讯股份有限公司 | Multiple protocol label switching-based operation, administration and maintenance (OAM) method and apparatus |
CN105591844A (en) * | 2016-03-08 | 2016-05-18 | 烽火通信科技股份有限公司 | Method for realizing OAM automatic verification based on PTN chip frequency reduction |
US20160344630A1 (en) * | 2015-05-22 | 2016-11-24 | Electronics And Telecommunications Research Institute | Packet transmission apparatus for processing operations, administration, and maintenance (oam) packet and protection switching message |
CN111988158A (en) * | 2019-05-23 | 2020-11-24 | 北京物芯科技有限责任公司 | Method, device, system and storage medium for realizing OAM message sending at chip level |
CN114157684A (en) * | 2020-08-18 | 2022-03-08 | 华为终端有限公司 | Message processing method, device and storage medium |
WO2022095571A1 (en) * | 2020-11-03 | 2022-05-12 | 中兴通讯股份有限公司 | Message forwarding method and device, and computer readable storage medium |
-
2022
- 2022-11-11 CN CN202211412702.1A patent/CN115941540B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040165534A1 (en) * | 2002-07-25 | 2004-08-26 | Claseman George R. | Operations, administration and maintenance (OAM) systems and methods for packet switched data networks |
WO2008055426A1 (en) * | 2006-11-09 | 2008-05-15 | Huawei Technologies Co., Ltd. | Method, system and node apparatus for transmitting ethernet connectibvity fault management message |
CN101317372A (en) * | 2006-11-09 | 2008-12-03 | 华为技术有限公司 | Transmission method, system and node device of Ethernet connection fault management message |
CN103716172A (en) * | 2012-09-28 | 2014-04-09 | 中兴通讯股份有限公司 | Multiple protocol label switching-based operation, administration and maintenance (OAM) method and apparatus |
CN103368849A (en) * | 2013-07-05 | 2013-10-23 | 盛科网络(苏州)有限公司 | OAM (Operations, Administration and Management) message processing method and device |
US20160344630A1 (en) * | 2015-05-22 | 2016-11-24 | Electronics And Telecommunications Research Institute | Packet transmission apparatus for processing operations, administration, and maintenance (oam) packet and protection switching message |
CN105591844A (en) * | 2016-03-08 | 2016-05-18 | 烽火通信科技股份有限公司 | Method for realizing OAM automatic verification based on PTN chip frequency reduction |
CN111988158A (en) * | 2019-05-23 | 2020-11-24 | 北京物芯科技有限责任公司 | Method, device, system and storage medium for realizing OAM message sending at chip level |
CN114157684A (en) * | 2020-08-18 | 2022-03-08 | 华为终端有限公司 | Message processing method, device and storage medium |
WO2022095571A1 (en) * | 2020-11-03 | 2022-05-12 | 中兴通讯股份有限公司 | Message forwarding method and device, and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
裴广超;叶兵;: "网络连通性快速检测系统的实现", 电子科技, no. 02, 15 February 2011 (2011-02-15), pages 87 - 89 * |
Also Published As
Publication number | Publication date |
---|---|
CN115941540B (en) | 2024-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10917322B2 (en) | Network traffic tracking using encapsulation protocol | |
CN110312279B (en) | Network data monitoring method and device | |
US10305822B2 (en) | Service chain routing method and system, and equipment in system | |
US10033602B1 (en) | Network health management using metrics from encapsulation protocol endpoints | |
CN112910773B (en) | Method for issuing OAM configuration information and control node | |
US20080101362A1 (en) | Method and device for making uplink standby | |
CN109088820B (en) | Cross-device link aggregation method and device, computing device and storage medium | |
CN115004650B (en) | Node configuration method, device, distributed system and computer-readable medium | |
WO2023030417A1 (en) | Packet processing method and device, storage medium, and computer program product | |
CN112751733A (en) | Link detection method, device, equipment, system and switch | |
US20080267080A1 (en) | Fault Verification for an Unpaired Unidirectional Switched-Path | |
WO2011157146A2 (en) | Main/backup switching method between communication devices, communication device, system and service request device | |
CN114189893B (en) | O-RAN capability opening method, communication system, device and storage medium | |
CN105763463B (en) | Method and device for transmitting link detection message | |
CN115484047A (en) | Method, device, equipment and storage medium for identifying flooding attack in cloud platform | |
CN114629825A (en) | Path detection method, device and node of computing power sensing network | |
CN115941540B (en) | Message processing device, node equipment and method | |
US11973649B2 (en) | Network configuration method, apparatus, and computer-readable storage medium | |
CN102821415B (en) | Fault detecting and processing method and fault detecting and processing device | |
CN115914143A (en) | A message forwarding method and gateway device | |
CN105763347A (en) | Method for obtaining parameter, network equipment and system | |
CN106559838B (en) | business processing optimization method and device | |
CN107104837B (en) | Method and control device for path detection | |
CN103067280A (en) | Method and device of message processing | |
CN109450794A (en) | A kind of communication means and equipment based on SDN network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |