WO2023273939A1 - 报文处理方法、网络处理器及存储介质 - Google Patents

报文处理方法、网络处理器及存储介质 Download PDF

Info

Publication number
WO2023273939A1
WO2023273939A1 PCT/CN2022/099901 CN2022099901W WO2023273939A1 WO 2023273939 A1 WO2023273939 A1 WO 2023273939A1 CN 2022099901 W CN2022099901 W CN 2022099901W WO 2023273939 A1 WO2023273939 A1 WO 2023273939A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
accessed
entry
processing
network processor
Prior art date
Application number
PCT/CN2022/099901
Other languages
English (en)
French (fr)
Inventor
曹志刚
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023273939A1 publication Critical patent/WO2023273939A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the embodiments of the present application relate to but are not limited to the field of communication technologies, and in particular, relate to a packet processing method, a network processor, and a storage medium.
  • the network processor can process a large number of services at the same time. By identifying and analyzing the input message, it can perform a series of service table lookups, and can also edit and forward the message based on the message analysis results and service lookup table information.
  • the current network processor can only randomly capture packets at specific locations without affecting service forwarding, and cannot quickly analyze the processing path of the service in the network processor, resulting in service path queries and exceptions Positioning is difficult.
  • Embodiments of the present application provide a packet processing method, a network processor, and a storage medium.
  • the embodiment of the present application provides a message processing method, which is applied to a network processor, and the message processing method includes: obtaining a target message; and obtaining entry access information according to the target message, wherein, The entry access information is obtained by the network processor performing table lookup processing according to the target message, and the entry access information includes the entry number of the accessed packet forwarding entry, the packet forwarding The accessed order of published items and message processing tag information, the message processing tag information is used to characterize the processing result of the target message by the network processor; according to the entry number, the accessed order Perform data processing on the target message with the message processing flag information.
  • the embodiment of the present application further provides a network processor, including: a message acquisition module configured to acquire a target message; an entry information acquisition module configured to acquire an entry according to the target message Access information, wherein the entry access information is obtained by the network processor performing table lookup processing according to the target message, and the entry access information includes the entry number of the accessed message forwarding entry, The accessed order of the message forwarding entry and the message processing mark information, the message processing mark information is used to represent the processing result of the target message by the network processor; the message processing module is set performing data processing on the target message according to the entry number, the accessed order and the message processing mark information.
  • the embodiment of the present application also provides a network processor, including: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the computer program when executing the computer program.
  • a network processor including: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the computer program when executing the computer program.
  • the embodiment of the present application further provides a computer-readable storage medium, storing computer-executable instructions, where the computer-executable instructions are used to execute the packet processing method as described above.
  • FIG. 1 is a flowchart of a message processing method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a message processing method provided in another embodiment of the present application.
  • FIG. 3 is a block diagram of functional modules of a network processor provided by an embodiment of the present application.
  • Fig. 4 is a block diagram of functional modules of a network processor provided by another embodiment of the present application.
  • the embodiment of the present application provides a message processing method, a network processor, and a computer-readable storage medium.
  • the target message can be used to obtain the corresponding table Item access information, and then obtain the complete processing path for the network processor to process the target message through the entry number of the packet forwarding entry, the sequence of accessing the packet forwarding entry, and the packet processing flag information in the entry access information , so as to improve the efficiency of obtaining the processing path of the network processor for the message; in addition, it can also assist in the abnormal problem location or fault diagnosis of the target message according to the access information of the table item, so as to improve the accuracy of the target message. analysis processing efficiency.
  • an embodiment of the present application provides an architecture platform for executing the packet processing method.
  • the architecture platform can be applied to network processors.
  • the architecture platform includes a packet acquisition module 110 , an address generation module, an entry number recording module, an entry content recording module, and an entry information generation module 220 .
  • the message obtaining module 110 is configured to obtain target messages according to message monitoring requirements, so as to prevent the network processor from recording and analyzing unnecessary messages.
  • the address generation module is set to generate numbers for all message forwarding entries in the network processor, and the counters can be directly used to count the numbers. After the numbering, it is convenient for subsequent storage and path analysis of the service path.
  • the table item number recording module is set to be used when the network processor performs table lookup according to the target message, and is used for recording the table item numbers and the access order that are not stored.
  • the entry content recording module is set to record the accessed content when the network processor accesses and forwards the entry according to the target message. Usually, the entry number recording module and the entry content recording module are used correspondingly to ensure the accuracy of the record sex.
  • the table item information generation module 220 is set to mark the result of target message execution after the network processor executes the target message, which can directly reflect the result of execution, and can also play the role of performing table lookup on different target messages. Storage content is demarcated.
  • the architecture platform described in the embodiments of the present application is to illustrate the technical solutions of the embodiments of the present application more clearly, and does not constitute a limitation on the technical solutions provided by the embodiments of the present application.
  • Those skilled in the art know that with the development of network processor technology Evolution and emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
  • FIG. 1 is a flowchart of a message processing method provided by an embodiment of the present application.
  • the message processing method includes step S210, step S220 and step S230,
  • Step S210 Obtain the target message
  • Step S220 Obtain table item access information according to the target message, wherein the table item access information is obtained by the network processor through table lookup processing according to the target message, and the table item access information includes the table item of the accessed message forwarding table item Number, access sequence of message forwarding entries and message processing mark information, message processing mark information is used to represent the processing result of the network processor on the target message;
  • Step S230 Perform data processing on the target message according to the entry number, the accessed sequence and the message processing flag information.
  • the table item access information is obtained during the table lookup process by the network processor according to the target message, that is, the table item access information can be pre-stored in the storage unit, therefore, when it is necessary to query
  • the network processor processes the service path of a certain target message, it can obtain the entry access information corresponding to the target message in the storage unit according to the target message, that is, obtain the entry number of the message forwarding entry,
  • the access order of the message forwarding entry and the message processing mark information can determine the service path of the target message, thereby improving the efficiency of obtaining the processing path of the message by the network processor; in addition, because the network processing path is recorded
  • the server executes the service path of the target message, and can also assist in abnormal problem location or fault diagnosis of the target message according to the access information of the table item, thereby improving the analysis and processing efficiency of the target message.
  • the message processing mark information is used to represent the processing result of the target message by the network processor.
  • the essence of the message processing mark information can be understood as the characteristic character written after the message is executed. Different characteristic characters can correspond to different processing. result. Therefore, after storing the entry numbers of the message forwarding entries, the accessed order of the message forwarding entries, and the message processing mark information in the storage unit in sequence, multiple entries can be accessed by using the message processing mark information.
  • the information is demarcated, so that after confirming the message processing tag information, the entry number of the message forwarding entry and the order of accessing the message forwarding entry can be obtained effectively and quickly, so as to determine the network processor according to the target The order in which packets access the packet forwarding entries, that is, the service path.
  • the message processing method further includes step S240: displaying the entry access information or providing a download path of the entry access information .
  • the way of visual display can better assist manual confirmation of the service path of the target message, further improving the efficiency of confirming the service path.
  • Step S230 includes but is not limited to the step of: performing service path tracking and abnormal At least one processing of problem location or fault diagnosis.
  • the message processing tag information it can quickly confirm whether the execution of the target message is normal. If the processing is over, you can know the business path of the target message execution through the entry number and the order of access. On the basis of knowing the service path of the target packet path, it can be judged which packet forwarding entry is wrong when accessing it, so as to quickly complete the location of the abnormal link and further diagnose the fault.
  • the confirmation of the service path of the target message is automatically completed according to the entry number, the sequence of access and the message processing tag information, and manual analysis is no longer required, which greatly improves the efficiency of path analysis and fault location. Efficiency, especially when combined with visual display, can automatically display business paths and fault location results.
  • the table item access information also includes the accessed content of the message forwarding table item; here, based on the newly added accessed content, step S230 is further described, and step S230 also includes: when the message Process the tag information to indicate that the target packet is lost, and confirm the packet loss cause of the target packet according to the target packet, table item number, accessed order, and accessed content; perform service repair processing based on the packet loss cause.
  • the packet processing flag information it is possible to quickly confirm whether the execution of the target packet is normal. If the processing is completed, the business path of the packet execution can be known through the entry number and the order of access. After the service path confirms which packet forwarding entry is accessed in error, the specific cause of packet loss can be known through the stored accessed content of the packet forwarding entry. For example: Through the target message and the accessed content, it is possible to know whether there is an entry value configuration error, hardware error, etc., and then perform self-healing repairs for the corresponding business based on these specific reasons, such as reconfiguring business data, resetting the chip or resetting the Boards, etc. are repaired.
  • the specific cause of packet loss can be accurately analyzed, and then corresponding repair measures can be quickly taken for repair.
  • different causes of packet loss and different repair measures will construct corresponding relationships and store them. After obtaining entry access information according to the target message and analyzing and confirming the specific cause of packet loss, it will directly call The corresponding repair measures are repaired. If it is carried out, the repair record will be saved synchronously for subsequent traceability. At the same time, the content of repeated repairs in a short period of time will be pushed for subsequent manual analysis.
  • the information will be stored in one storage unit, and the accessed content will be stored in another storage unit.
  • the accessed content will be stored in another storage unit.
  • FIG. 2 is a flow chart of a packet processing method proposed by another embodiment of the present application.
  • the table item access information also includes the accessed content of the message forwarding table item; the table item access information is obtained by the network processor according to the table lookup processing of the target message, including step S110, step S120, step S130,
  • Step 110 In the process of the network processor performing table lookup processing according to the target message, obtain the entry number, the accessed order and the accessed content;
  • Step 120 Obtain candidate access information according to the entry number, accessed order and accessed content
  • Step 130 After the network processor completes the table lookup process on the target message, set the message processing flag information in the candidate access information to obtain table item access information.
  • the network processor After the network processor receives the target message, the network processor will query and access the table item according to the target message. In this process, the table item label, accessed order and accessed content of the message forwarding table item will be obtained. , these information will be stored and recorded as candidate access information when the target message is executed. After the network processor has processed the entire target message, it will add the message processing tag information to the candidate access information, and then the entry access can be obtained. information. It needs to be explained here that when actually storing the entry label, accessed order, and accessed content, the entry number and the accessed content will be stored one by one according to the order of the access packet forwarding entries until the last packet is accessed. post items.
  • target packets can be identified and marked through the ACL configuration, so that the network processor will not store all the packets, but only access the record entry information of the marked target packets. Storage avoids performing storage and analysis operations on messages that do not need to be stored, and effectively improves the processing efficiency of the network processor.
  • ACL configuration target packets can be marked based on a certain port, based on a certain sub-interface, or based on mpls packet labels. In extreme cases, all packets received by the network processor can even be marked as target packets.
  • step 120 includes: when it is determined that at least one of the entry number, the accessed order, and the accessed content has not been stored, storing the entry number, the accessed order, and the accessed content to obtain Candidate access information.
  • a network processor When executing a network processor to process a certain target message, it is necessary to first determine whether the entry number, the order of access, or the content of the access has been stored. , the accessed order and the unstored part of the accessed content are stored, which can effectively avoid repeated writing of the stored content, and improve the efficiency of the network processor in processing services.
  • step 120 further includes: when it is determined that the entry number, the accessed order, and the accessed content have been stored, not storing the entry number, the accessed order, and the accessed content.
  • the execution network processor processes a certain target message, if it is determined that the entry number, accessed sequence or accessed content has been recorded, it does not need to be stored again, which can effectively avoid repeating the stored content writing, which improves the efficiency of the network processor in processing services.
  • the message processing method includes the following steps:
  • target message such as the aforementioned ACL configuration to identify the target message and mark it;
  • the network processor If every time the network processor receives a message, it needs to determine whether to carry a tag when performing table entry query based on the message. If it carries a tag, it is determined to be the target message. message, only normal entry access is required;
  • the target message After obtaining the target message, it will first judge whether the entry number of the accessed message forwarding table item and the accessed order of the message forwarding table item are stored in the first storage unit. Write the entry number and the accessed order in the storage unit. If it has already been stored, skip this step directly;
  • the target message After confirming the entry number and the order of access, it will further judge whether it is necessary to store the accessed content of the accessed message forwarding entry. If it is not stored in the second storage unit, it will be stored first. Otherwise, if it has been stored , then skip this step directly; here it needs to be explained that in order to facilitate message analysis, when storing the accessed content, the target message will also be stored, or important feature information in the target message will be stored;
  • the message processing tag information After all the entries of the target message are accessed, the message processing tag information will be written after the table item number and the accessed order stored in the first storage unit, and the message processing tag information corresponds to specific characteristic characters , different characteristic characters correspond to results such as normal processing and packet loss; here it needs to be explained that when judging and storing the entry number and accessed content based on the target message, it is based on the access sequence of the target message, one by one. The entry number and the accessed content of the message forwarding entry are stored until all the message forwarding entries that need to be accessed are completed, and finally the message processing mark information is written;
  • the business path of the target packet can be known by reading the entry number and the accessed sequence table in the first storage unit, and the execution target packet can be known through the packet processing tag information table. Whether there is packet loss during the text;
  • the specific cause of the packet loss can be further confirmed by reading the accessed content stored in the second storage unit and the important feature information of the target message.
  • the reason such as whether the value configuration of the table item is wrong, etc., and then automatically take corresponding measures to repair it, for example, reconfigure the service data, or reset the chip, reset the board, etc.
  • the first storage unit and the second storage unit can be realized by using two independent memories, or by dividing two independent storage areas in one memory.
  • FIG. 3 is a block diagram of functional modules of a network processor provided by an embodiment of the present application.
  • the network processor can implement the message processing method in the embodiment shown in Figure 1 and Figure 2, the network processor includes:
  • the message obtaining module 110 is configured to obtain the target message
  • the table item information acquisition module 120 is configured to obtain table item access information according to the target message, and the table item access information is obtained by the network processor according to the target message through table lookup processing, and the table item access information includes the transferred message of the accessed message.
  • the entry number of the published item, the access sequence of the message forwarding table items and the message processing mark information, the message processing mark information is used to represent the processing result of the target message by the network processor;
  • the message processing module 130 is configured to perform data processing on the target message according to the entry number, the accessed sequence and the message processing flag information.
  • the target message for service path query can be obtained through the message acquisition module 110, and the entry access information is obtained by the network processor according to the target message through table lookup processing, and stored in the storage unit middle.
  • the entry information acquisition module 120 can obtain the corresponding entry access information in the storage unit according to the target packet, that is, obtain the information of the packet forwarding entry.
  • the entry number, the access sequence of the message forwarding table items and the message processing mark information so as to obtain the complete processing path for the network processor to process the target message through the data analysis of the message processing module 130, so as to improve the acquisition of network processing.
  • the message processing module 130 can also assist in abnormal problem location or fault diagnosis of the target message according to the access information of the table entry, so as to improve the analysis of the target message Processing efficiency.
  • the message processing mark information is used to represent the processing result of the target message by the network processor.
  • the essence of the message processing mark information can be understood as the characteristic character written after the message is executed. Different characteristic characters can correspond to different processing. result. Therefore, after storing the entry numbers of the message forwarding entries, the accessed order of the message forwarding entries, and the message processing mark information in the storage unit in sequence, multiple entries can be accessed by using the message processing mark information.
  • the information is demarcated, so that after confirming the message processing tag information, the entry number of the message forwarding entry and the order of accessing the message forwarding entry can be obtained effectively and quickly, so as to determine the network processor according to the target The order in which packets access the packet forwarding entries, that is, the service path.
  • the message processing module 130 can also use the different characteristic characters corresponding to the message processing mark information to directly and effectively judge whether the message processing is abnormal. For example, when the characteristic character is "8888", it represents packet loss, which is "FFFF" The time indicates that the normal processing is completed.
  • the network processor further includes a visual display unit 140 configured to display the entry access information or provide a download path of the entry access information.
  • the visual display unit 140 visually displays the access information of the table item or the download path providing the access information of the table item, thereby facilitating the manual analysis of the target message by service trackers or fault analysts.
  • the message processing module 130 includes a path analysis sub-module, and the path analysis sub-module is configured to perform business operations on the target message according to the entry number, the accessed order, and message processing tag information. At least one processing of path tracing, abnormal problem location, or fault diagnosis.
  • the path analysis sub-module can know the business path of the packet execution through the entry number and the order of access, and then can determine which packet forwarding entry is wrong when accessing the packet loss and other abnormal situations, so as to achieve fast Complete business path tracing, abnormal problem location or fault diagnosis.
  • the confirmation of the service path of the target message is automatically completed according to the entry number, the sequence of access and the message processing tag information, and manual analysis is no longer required, which greatly improves the efficiency of path analysis and fault location. Efficiency, especially when combined with visual display, can automatically display business paths and fault location results.
  • the packet processing module 130 further includes a fault analysis submodule.
  • the fault analysis sub-module is set to confirm the packet loss cause of the target packet according to the target Perform business repair processing on the package cause.
  • the fault analysis sub-module can determine which packet forwarding entry is being accessed in the event of an abnormal situation such as packet loss, and know the specific cause of packet loss through the stored access content of the packet forwarding entry . For example: Through the target message and the accessed content, it is possible to know whether there is an entry value configuration error, hardware error, etc., and then perform self-healing repairs for the corresponding business based on these specific reasons, such as reconfiguring business data, resetting the chip or resetting the Boards, etc. are repaired. In this embodiment, by further increasing the analysis of the accessed content, the specific cause of packet loss can be accurately analyzed, and then corresponding repair measures can be quickly taken for repair.
  • FIG. 4 is a block diagram of functional modules of a network processor provided by another embodiment of the present application.
  • the network processor further includes a candidate information generating module 210 and an entry information generating module 220 .
  • the candidate information generation module 210 is configured to obtain the table entry number, the accessed order and the accessed content during the process of the network processor performing table lookup processing according to the target message, and The content gets candidate access information;
  • the table item information generation module 220 is configured to set message processing flag information in the candidate access information after the network processor completes the table lookup processing of the target message, so as to obtain table item access information.
  • the network processor When the message analysis is not performed and only the target message is obtained normally, after the network processor processes the target message, it will also obtain the candidate access information according to the target message through the candidate information generation module 210, only after obtaining the candidate access information and processing After the target message is finished, the entry access information will be stored, so that it can be used later to query the service path of the target message or analyze and locate faults. It should be noted here that the already stored entry access information will not be stored repeatedly, so as to improve the processing efficiency of the network processor. It needs to be explained here that when actually storing the entry label, accessed order, and accessed content, the entry number and the accessed content will be stored one by one according to the order of the access packet forwarding entries until the last packet is accessed. post items.
  • the target packets can be identified and marked through the ACL configuration, so that the network processor will not store all the packets, but only access the record entry information of the marked target packets. Storage avoids performing storage and analysis operations on messages that do not need to be stored, and effectively improves the processing efficiency of the network processor.
  • the candidate information generating module 210 includes an entry number recording module and an entry content recording module, and the entry number recording module and the entry content recording module are jointly set to determine the entry number, the accessed At least one of the order or the accessed content is not stored, and the entry number, the accessed order, and the accessed content are stored to obtain candidate access information.
  • the entry number recording module and the entry content recording module are jointly configured to not record the entry number, the accessed order and the accessed content when it is determined that the entry number, the accessed order, and the accessed content and stored content.
  • an embodiment of the present application also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to execute the above-mentioned packet processing method, for example, by the above-mentioned Execution by a processor in the embodiment of the network processor may cause the processor to execute the information processing method in the above embodiment, for example, execute the method in FIG. 1 and the method in FIG. 2 described above.
  • an embodiment of the present application also provides a network processor.
  • the network processor includes: a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, it realizes Such as the packet processing method described above.
  • the non-transitory software programs and instructions required to realize the message processing method of the above-mentioned embodiment are stored in the memory, and when executed by the processor, the message processing method in the above-mentioned embodiment is executed, for example, executing the above-described Fig. 1
  • the embodiment of the present application includes: obtaining the target message; obtaining table item access information according to the target message, wherein the table item access information is obtained by the network processor according to the target message through table lookup processing, and the table item access information includes the accessed The entry number of the message forwarding entry, the access sequence of the message forwarding entry and the message processing mark information, the message processing mark information is used to represent the processing result of the network processor on the target message; according to the entry number, The accessed sequence and message processing mark information perform data processing on the target message. Since the entry access information is obtained in the process of the network processor looking up the table according to the target message, that is, the table item access information can be stored in advance.
  • the target message when it is necessary to query the network processor to process a certain target message In the service path, the target message can be used to obtain the corresponding entry access information, and then the entry number of the packet forwarding entry, the sequence of accessing the packet forwarding entry, and the packet processing flag in the entry access information
  • the information obtains the complete processing path of the network processor for processing the target message, thereby improving the efficiency of obtaining the processing path of the network processor for the message; in addition, it can also assist in troubleshooting the abnormal problem of the target message according to the access information of the table item processing such as positioning or fault diagnosis, so as to improve the analysis and processing efficiency of the target message.
  • Computer storage media including, but not limited to, RAM, ROM, EEPROM, flash memory or other storage unit technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or Any other medium that can be used to store desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Landscapes

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

Abstract

一种报文处理方法、网络处理器及存储介质。其中,报文处理方法应用于网络处理器,该报文处理方法包括:获取目标报文(S210);根据目标报文获取表项访问信息(S220),其中,表项访问信息由网络处理器根据目标报文进行查表处理而得到;根据表项编号、被访问次序和报文处理标记信息对目标报文进行数据处理(S230)。

Description

报文处理方法、网络处理器及存储介质
相关申请的交叉引用
本申请基于申请号为202110727433.7、申请日为2021年06月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请实施例涉及但不限于通信技术领域,尤其涉及一种报文处理方法、网络处理器及存储介质。
背景技术
随着通信网络和传输技术的发展,尤其在5G时代,有线分组网络大容量大带宽的要求使得网络处理器得到了大量的应用。网络处理器能同时处理大量业务,通过对输入报文进行识别解析,可进行一系列业务查表,还可以基于报文解析结果和业务查表信息,对报文进行编辑和转发。但是,目前的网络处理器在不影响业务转发的情况下,只能在特定位置随机抓取报文,无法快速的分析出该业务在网络处理器中的处理路径,从而导致业务路径查询和异常定位困难。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本申请实施例提供了一种报文处理方法、网络处理器及存储介质。
第一方面,本申请实施例提供了一种报文处理方法,应用于网络处理器,所述报文处理方法包括:获取目标报文;根据所述目标报文获取表项访问信息,其中,所述表项访问信息由所述网络处理器根据所述目标报文进行查表处理而得到,所述表项访问信息包括被访问的报文转发表项的表项编号、所述报文转发表项的被访问次序和报文处理标记信息,所述报文处理标记信息用于表征所述网络处理器对所述目标报文的处理结果;根据所述表项编号、所述被访问次序和所述报文处理标记信息对所述目标报文进行数据处理。
第二方面,本申请实施例还提供了一种网络处理器,包括:报文获取模块,被设置为获取目标报文;表项信息获取模块,被设置为根据所述目标报文获取表项访问信息,其中,所述表项访问信息由所述网络处理器根据所述目标报文进行查表处理而得到,所述表项访问信息包括被访问的报文转发表项的表项编号、所述报文转发表项的被访问次序和报文处理标记信息,所述报文处理标记信息用于表征所述网络处理器对所述目标报文的处理结果;报文处理模块,被设置为根据所述表项编号、所述被访问次序和所述报文处理标记信息对所述目标报文进行数据处理。
第三方面,本申请实施例还提供了一种网络处理器,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述的报文处理方法。
第四方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上述的报文处理方法。
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。
图1是本申请一个实施例提供的报文处理方法的流程图;
图2是本申请另一个实施例提供的报文处理方法的流程图;
图3是本申请一个实施例提供的网络处理器的功能模块框图;
图4是本申请另一个实施例提供的网络处理器的功能模块框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本申请实施例提供了一种报文处理方法、网络处理器及计算机可读存储介质,在需要查询网络处理器处理某一目标报文的业务路径时,可以利用该目标报文获取对应的表项访问信息,进而通过表项访问信息中的报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息获得网络处理器处理该目标报文的完整处理路径,从而能够提高获取网络处理器对报文的处理路径的效率;另外,还可以根据该表项访问信息辅助进行对目标报文的异常问题定位或故障诊断等处理,从而能够提高对目标报文的分析处理效率。
这里为了便于阐述本申请的报文处理方法、网络处理器及计算机可读存储介质,本申请一个实施例提供了用于执行报文处理方法的架构平台。该架构平台可以应用于网络处理器。该架构平台包括报文获取模块110、地址生成模块、表项编号记录模块、表项内容记录模块、表项信息生成模块220。报文获取模块110被设置为根据报文监测需求获取目标报文,避免网络处理器对一些不必要的报文也进行记录和分析。地址生成模块被设置为为网络处理器中所有的报文转发表项生成编号,可以直接采用计数器进行计数编号即可,编号后,便于后续对业务路径进行存储和路径分析。表项编号记录模块被设置为在网络处理器依据目标报文进行查表时使用,用于记录没有存储的表项编号、被访问次序。表项内容记录模块被设置为记录网络处理器依据目标报文访问访问报文转发表项时的被访问内容,通常,表项编号记录模块、表项内容记录模块对应使用,以保证记录的准确性。表项信息生成模块220被设置为在网络处理器执行完目标报文后,标记目标报文执行的结果,既可以直观反应执行的结果,也可以起到对不同目标报文执行查表后需存储内容进行分界。
本申请实施例描述的架构平台是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着网络处理器技术的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
在上述的架构平台中,各个模块之间可以相互配合以执行数据传输方法。
基于上述架构平台以及上述架构平台中各个模块及器件的结构关系,提出本申请的报文处理方法的各个实施例。下面结合附图,对本申请实施例进行阐述。
如图1所示,图1是本申请一个实施例提供的报文处理方法的流程图。
如图1所示,该报文处理方法包括步骤S210、步骤S220和步骤S230,
步骤S210:获取目标报文;
步骤S220:根据目标报文获取表项访问信息,其中,表项访问信息由网络处理器根据目标报文进行查表处理而得到,表项访问信息包括被访问的报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息,报文处理标记信息用于表征网络处理器对目标报文的处理结果;
步骤S230:根据表项编号、被访问次序和报文处理标记信息对目标报文进行数据处理。
在本实施例中,由于表项访问信息是在网络处理器根据目标报文进行查表处理的过程中而得到的,即表项访问信息可以被预先存储在存储单元中,因此,在需要查询网络处理器处理某一目标报文的业务路径时,可以依据该目标报文在存储单元中获得与该目标报文对应的表项访问信息,即获得了报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息,从而可以确定该目标报文的业务路径,从而能够提高获取网络处理器对报文的处理路径的效率;此外,因为记录了网络处理器执行目标报文的业务路径,还可以根据该表项访问信息辅助进行对目标报文的异常问题定位或故障诊断等处理,从而能够提高对目标报文的分析处理效率。
报文处理标记信息用于表征网络处理器对目标报文的处理结果,报文处理标记信息的实质可以理解为报文执行完毕后的写入的特征字符,不同的特征字符可以对应不同的处理结果。因此,在将报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息依次存储在存储单元后,便可以利用报文处理标记信息将多个表项访问信息进行分界,以使得,可以在确认报文处理标记信息后,有效的且快速的获取报文转发表项的表项编号、报文转发表项的被访问次序,从而确定网络处理器依据目标报文访问报文转发表项的顺序,即业务路径。同时,还可以利用报文处理标记信息对应的不同的特征字符来直接有效的判断报文处理是否出现异常,例如:特征字符为“8888”时代表丢包,为“FFFF”时代表正常处理完成。
如图1所示,在本申请的一实施例中,在根据目标报文获取表项访问信息之后,报文处理方法还包括步骤S240:显示表项访问信息或者提供表项访问信息的下载路径。
通过可视化展示的方式,直接展示表项访问信息或者展示提供表项访问信息的下载路径,可以便于业务人员直接有效的获取目标报文的业务路径信息以及报文处理标记信息,进而可以人工快速确认报文是否正常处理完成,若正常处理完成,则便于人工进行路径确认,若出现丢包,则便于进行后续人工进行故障排查和故障定位。本实施例中,可视化展示的方式,可以更好的辅助人工进行确认目标报文的业务路径,进一步提高了确认业务路径的效率。
在本申请的一实施例中,对步骤S230进行了进一步说明,步骤S230包括但不限于步骤:根据表项编号、被访问次序和报文处理标记信息,对目标报文进行业务路径跟踪、异常问题 定位或故障诊断中的至少一种处理。
依据报文处理标记信息可以快速的确认执行目标报文时是否正常,若正处理结束,可以通过表项编号、被访问次序知晓报目标文执行的业务路径,若出现丢包等异常情形,在知晓目标报文路径的业务路径基础上可以判断出具体是在访问哪个报文转发表项时出错,从而达到快速完成异常环节定位,并可以进一步进行故障诊断。本实施例中,依据表项编号、被访问次序和报文处理标记信息自动完成了对目标报文的业务路径的确认,不再需要进行人工分析,极大的提高了路径分析、故障定位的效率,特别在结合可视化展示后,可以自动显示业务路径和故障定位结果。
在本申请的一实施例中,表项访问信息还包括报文转发表项的被访问内容;这里基于新增被访问内容后,对步骤S230进行了进一步说明,步骤S230还包括:当报文处理标记信息表征目标报文被丢包,根据目标报文、表项编号、被访问次序和被访问内容,确认目标报文的丢包原因;根据丢包原因进行业务修复处理。
依据报文处理标记信息可以快速的确认执行目标报文时是否正常,若正处理结束,可以通过表项编号、被访问次序知晓报文执行的业务路径,若出现丢包等异常情形,在依据业务路径确认具体是在访问哪个报文转发表项出错后,可以通过存储的访问该报文转发表项的被访问内容知晓是具体的丢包原因。例如:通过目标报文和被访问内容,可以知晓是否出现表项数值配置错误、硬件错误等,进而可以根据这些具体原因进行相应业务的自愈修复,比如通过重新配置业务数据、复位芯片或复位单板等进行修复。本实施例中,通过进一步增加对被访问内容的分析,可以准确的分析出具体的丢包原因,进而可以快速的采取对应的修复措施进行修复。在本申请的一实施例中,不同的丢包原因和不同的修复措施会构建对应关系并进行存储,在依据目标报文获取表项访问信息并分析确认具体丢包原因后,便会直接调用对应的修复措施进行修复,如果进行了,会同步保存修复记录,便于后续进行追溯,同时,对于短时间内重复修复的内容会进行推送,以便进行后续的人工分析。
在本申请的一实施例中,根据表项编号、被访问次序和报文处理标记信息会存储在一个存储单元中,被访问内容会存储在另一个存储单元中。在进行报文分析时,可通过先分析表项编号、被访问次序和报文处理标记信息来确定目标报文是否正常处理完成并获取对应的业务路径,从而减少在仅需要确认业务路径时需要读取和处理的数据量。在需要确认具体访问内容是否出错时,在确认业务路径后,可以再对单独存储的被访问内容进行提取并分析,确定具体的丢包原因。本实施例中,将信息依据使用需求进行分别存储的方式,可以降低无用步骤所消耗的时间,进一步提高了数据处理效率。
如图2所示,图2为本申请的另一实施例提出的报文处理方法的流程图。
如图2所示,表项访问信息还包括报文转发表项的被访问内容;表项访问信息由网络处理器根据目标报文进行查表处理而得到包括步骤S110、步骤S120、步骤S130,
步骤110:在网络处理器根据目标报文进行查表处理的过程中,获取表项编号、被访问次序和被访问内容;
步骤120:根据表项编号、被访问次序和被访问内容得到候选访问信息;
步骤130:当网络处理器完成对目标报文的查表处理后,在候选访问信息中设置报文处理标记信息,得到表项访问信息。
在网络处理器接收到得到目标报文后,网络处理器会依据目标报文进行表项查询访问, 在这个过程中,会得到报文转发表项的表项标号、被访问次序和被访问内容,这些信息会在执行目标报文时会存储并记作候选访问信息,在网络处理器将整个目标报文处理完之后,会候选访问信息中加入报文处理标记信息,便可以得到表项访问信息。这里需要说明,在实际存储表项标号、被访问次序和被访问内容时,会依据访问报文转发表项的顺序逐个进行表项编号、被访问内容的存储,直至访问完最后一个报文转发表项。
这里需要说明,可以通过ACL配置识别目标报文并打上标记,这样便可以让网络处理器不会对所有报文都进行存储,而仅会对标记过的目标报文的记录表项访问信息进行存储,避免了对不需要进行存储的报文执行存储和分析操作,有效的提高了网络处理器的处理效率。通过ACL配置可以基于某个端口、基于某个子接口、或者基于mpls报文标签等标记目标报文,极端情况下,甚至可以将网络处理器接收的所有报文都标记为目标报文。
在本申请的一实施例中,步骤120包括:当确定表项编号、被访问次序或被访问内容中的至少一个未被存储,将表项编号、被访问次序和被访问内容进行存储,得到候选访问信息。在执网络处理器处理某一个目标报文时,需要先判断表项编号、被访问次序或被访问内容有没有被存储,只有在没有被存完全储的情形下,才会对存储表项编号、被访问次序和被访问内容中为存储的部分进行存储,这样可以有效避免对已经存储的内容进行反复的写入,提高了网络处理器处理业务的效率。
在本申请的一实施例中,步骤120还包括:当确定表项编号、被访问次序和被访问内容已被存储,不对表项编号、被访问次序和被访问内容进行存储。在执网络处理器处理某一个目标报文时,如果确定已经将表项编号、被访问次序或被访问内容进行记录,则不需要再重新进行存储,这样可以有效避免对已经存储的内容进行反复的写入,提高了网络处理器处理业务的效率。
为了更加清楚的说明本申请实施例提供的报文处理方法的处理流程,下面以示例进行说明。
该报文处理方法包括以下步骤:
对网络处理器中的所有报文转发表项进行编号,不同的报文转发表项对应不同的编号;
基于报文监测的需求,选取目标报文,例如前述的通过ACL配置识别目标报文并打上标记;
若每次网络处理器接收到报文,在依据报文进行表项查询时,则需要先判断是否携带标记,若携带标记,则确定为目标报文,反之,若未携带标记,则是普通报文,仅进行正常的表项访问即可;
获取到目标报文后,会先判断第一存储单元中,是否存储了被访问的报文转发表项的表项编号、报文转发表项的被访问次序,若未存储,则在第一存储单元中写入表项编号、被访问次序,若已经存储,则直接跳过此步骤;
确认完表项编号、被访问次序后,便会进一步判断是否需要存储被访问的报文转发表项的被访问内容,若第二存储单元中未存储,则先进行存储,反之,若已经存储,则直接跳过此步骤;这里需要说明,为了便于进行报文分析,在存储被访问内容时,也会将目标报文进行存储,或者存储目标报文中重要的特征信息;
在目标报文的访问完所有的表项之后,则会在已经存储在第一存储单元中的表项编号、被访问次序后写入报文处理标记信息,报文处理标记信息对应具体特征字符,不同的特征字 符对应了正常处理完毕、丢包等结果;这里需要说明,在依据目标报文进行表项编号和被访问内容判断和存储时,是依据目标报文的访问顺序,逐个对报文转发表项的表项编号、被访问内容进行存储,直至所有需访问的报文转发表项完成,最后写入报文处理标记信息;
若需要进行报文路径分析、或故障定位,可以通过读取第一存储单元中的表项编号、被访问次序表知晓目标报文的业务路径,通过报文处理标记信息表可以知晓执行目标报文时是否出现丢包;
若第一存储单元中存储的目标报文的业务路径存在问题,可以通过读取存储在第二存储单元中的被访问内容、目标报文的重要特征信息,来进一步确认报文丢包的具体原因,比如是否是表项数值配置错误等,然后自动采取对应的措施进行修复即可,例如,重新配置业务数据,或者复位芯片,复位单板等。
这里需要补充说明,如果目标报文在第一存储单元中对应存储的表项访问信息中没有报文处理标记信息,则说明,报文被硬件丢失。此外,第一存储单元和第二存储单元可以采用两个单独的存储器,也可以在一个存储器中划分出两个独立的存储区域来实现。
另外,如图3所示,图3为本申请的一个实施例提供的网络处理器的功能模块框图。
如图3所示,该网络处理器能够实现如图1和图2所示实施例中的报文处理方法,该网络处理器包括:
报文获取模块110,被设置为获取目标报文;
表项信息获取模块120,被设置为根据目标报文获取表项访问信息,表项访问信息由网络处理器根据目标报文进行查表处理而得到,表项访问信息包括被访问的报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息,报文处理标记信息用于表征网络处理器对目标报文的处理结果;
报文处理模块130,被设置为根据表项编号、被访问次序和报文处理标记信息对目标报文进行数据处理。
在本实施例中,通过报文获取模块110可以得到想要进行业务路径查询的目标报文,表项访问信息是由网络处理器根据目标报文进行查表处理而得到,并存储在存储单元中。在需要查询网络处理器处理某一目标报文的业务路径时,表项信息获取模块120可以根据该目标报文在存储单元中获取到对应的表项访问信息,即获得报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息,从而通过报文处理模块130进行数据分析获得网络处理器处理该目标报文的完整处理路径,从而能够提高获取网络处理器对报文的处理路径的效率;另外,报文处理模块130还可以根据该表项访问信息辅助进行对目标报文的异常问题定位或故障诊断等处理,从而能够提高对目标报文的分析处理效率。
报文处理标记信息用于表征网络处理器对目标报文的处理结果,报文处理标记信息的实质可以理解为报文执行完毕后的写入的特征字符,不同的特征字符可以对应不同的处理结果。因此,在将报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息依次存储在存储单元后,便可以利用报文处理标记信息将多个表项访问信息进行分界,以使得,可以在确认报文处理标记信息后,有效的且快速的获取报文转发表项的表项编号、报文转发表项的被访问次序,从而确定网络处理器依据目标报文访问报文转发表项的顺序,即业务路径。同时,报文处理模块130还可以利用报文处理标记信息对应的不同的特征字符来直接有效的判断报文处理是否出现异常,例如:特征字符为“8888”时代表丢包,为“FFFF”时代 表正常处理完成。
如图3所示,网络处理器还包括可视化展示单元140,可视化展示单元140被设置为显示表项访问信息或者提供表项访问信息的下载路径。
通过可视化展示单元140对表项访问信息或者提供表项访问信息的下载路径进行可视化显示,进而可以便于业务跟踪人员或故障分析人员对目标报文进行人工分析。在本申请的一实施例中,报文处理模块130包括路径分析子模块,路径分析子模块被设置为根据表项编号、所述被访问次序和报文处理标记信息,对目标报文进行业务路径跟踪、异常问题定位或故障诊断中的至少一种处理。
路径分析子模块通过表项编号、被访问次序可以知晓报文执行的业务路径,进而可以在出现丢包等异常情形时,判断出具体是在访问哪个报文转发表项时出错,从而达到快速完成业务路径跟踪、异常问题定位或故障诊断。本实施例中,依据表项编号、被访问次序和报文处理标记信息自动完成了对目标报文的业务路径的确认,不再需要进行人工分析,极大的提高了路径分析、故障定位的效率,特别在结合可视化展示后,可以自动显示业务路径和故障定位结果。
在本申请的一实施例中,报文处理模块130还包括故障分析子模块。当报文处理标记信息表征目标报文被丢包,故障分析子模块被设置为根据目标报文、表项编号、被访问次序和被访问内容,确认目标报文的丢包原因,并根据丢包原因进行业务修复处理。
故障分析子模块可以在出现丢包等异常情形时,判断出具体是在访问哪个报文转发表项出错,并通过存储的访问该报文转发表项的被访问内容知晓是具体的丢包原因。例如:通过目标报文和被访问内容,可以知晓是否出现表项数值配置错误、硬件错误等,进而可以根据这些具体原因进行相应业务的自愈修复,比如通过重新配置业务数据、复位芯片或复位单板等进行修复。本实施例中,通过进一步增加对被访问内容的分析,可以准确的分析出具体的丢包原因,进而可以快速的采取对应的修复措施进行修复。在本申请的一实施例中,不同的丢包原因和不同的修复措施会构建对应关系并进行存储,在依据目标报文获取表项访问信息并分析确认具体丢包原因后,便会直接调用对应的修复措施进行修复,如果进行了,会同步保存修复记录,便于后续进行追溯,同时,对于短时间内重复修复的内容会进行推送,以便进行后续的人工分析。另外,如图4所示,图4为本申请另一实施例提供的网络处理器的功能模块框图。
如图4所示,网络处理器还包括候选信息生成模块210、表项信息生成模块220。
候选信息生成模块210,被设置为在网络处理器根据目标报文进行查表处理的过程中,获取表项编号、被访问次序和被访问内容,并根据表项编号、被访问次序和被访问内容得到候选访问信息;
表项信息生成模块220,被设置为当网络处理器完成对目标报文的查表处理后,在候选访问信息中设置报文处理标记信息,以得到表项访问信息。
在不进行报文分析,仅正常获取目标报文时,网络处理器处理到目标报文后,同样会通过候选信息生成模块210依据目标报文获取候选访问信息,只是在获取候选访问信息并处理完目标报文后会对表项访问信息进行存储,以便后续查询该目标报文的业务路径或分析定位故障时使用。这里需要说明,对于已经存储的表项访问信息,不会再进行重复存储,以便提高网络处理器的处理效率。这里需要说明,在实际存储表项标号、被访问次序和被访问内容 时,会依据访问报文转发表项的顺序逐个进行表项编号、被访问内容的存储,直至访问完最后一个报文转发表项。这里需要说明,可以通过ACL配置识别目标报文并打上标记,这样便可以让网络处理器不会对所有报文都进行存储,而仅会对标记过的目标报文的记录表项访问信息进行存储,避免了对不需要进行存储的报文执行存储和分析操作,有效的提高了网络处理器的处理效率。
在本申请的一实施例中,候选信息生成模块210包括表项编号记录模块、表项内容记录模块,表项编号记录模块、表项内容记录模块共同被设置为当确定表项编号、被访问次序或被访问内容中的至少一个未被存储,将表项编号、被访问次序和被访问内容进行存储,得到候选访问信息。
在本申请的一实施例中,表项编号记录模块、表项内容记录模块还共同被设置为当确定表项编号、被访问次序和被访问内容已被存储,不对表项编号、被访问次序和被访问内容进行存储。
另外,本申请的一个实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于执行如上述的报文处理方法,例如,被上述网络处理器的实施例中的一个处理器执行,可使得上述处理器执行上述实施例中的信息处理方法,例如,执行以上描述的图1中的方法、图2中的方法。
另外,本申请的一个实施例还提供了一种网络处理器,该网络处理器包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上述的报文处理方法。
实现上述实施例的报文处理方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例中的报文处理方法,例如,执行以上描述的图1中的方法、图2中的方法。
本申请实施例包括:获取目标报文;根据目标报文获取表项访问信息,其中,表项访问信息由网络处理器根据目标报文进行查表处理而得到,表项访问信息包括被访问的报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息,报文处理标记信息用于表征网络处理器对目标报文的处理结果;根据表项编号、被访问次序和报文处理标记信息对目标报文进行数据处理。由于表项访问信息是在网络处理器根据目标报文进行查表处理的过程中而得到的,即表项访问信息可以被预先存储,因此,在需要查询网络处理器处理某一目标报文的业务路径时,可以利用该目标报文获取对应的表项访问信息,进而通过表项访问信息中的报文转发表项的表项编号、报文转发表项的被访问次序和报文处理标记信息获得网络处理器处理该目标报文的完整处理路径,从而能够提高获取网络处理器对报文的处理路径的效率;另外,还可以根据该表项访问信息辅助进行对目标报文的异常问题定位或故障诊断等处理,从而能够提高对目标报文的分析处理效率。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据 结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储单元技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
以上是对本申请的实施例进行了说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。

Claims (12)

  1. 一种报文处理方法,应用于网络处理器,所述报文处理方法包括:
    获取目标报文;
    根据所述目标报文获取表项访问信息,其中,所述表项访问信息由所述网络处理器根据所述目标报文进行查表处理而得到,所述表项访问信息包括被访问的报文转发表项的表项编号、所述报文转发表项的被访问次序和报文处理标记信息,所述报文处理标记信息用于表征所述网络处理器对所述目标报文的处理结果;以及
    根据所述表项编号、所述被访问次序和所述报文处理标记信息对所述目标报文进行数据处理。
  2. 根据权利要求1所述的报文处理方法,其中,所述根据所述目标报文获取表项访问信息之后,所述报文处理方法还包括:
    显示所述表项访问信息或者提供所述表项访问信息的下载路径。
  3. 根据权利要求1所述的报文处理方法,其中,所述根据所述表项编号、所述被访问次序和所述报文处理标记信息对所述目标报文进行数据处理,包括:
    根据所述表项编号、所述被访问次序和所述报文处理标记信息,对所述目标报文进行业务路径跟踪、异常问题定位或故障诊断中的至少一种处理。
  4. 根据权利要求1所述的报文处理方法,其中,所述表项访问信息还包括所述报文转发表项的被访问内容;
    所述根据所述表项编号、所述被访问次序和所述报文处理标记信息对所述目标报文进行数据处理,包括:
    当所述报文处理标记信息表征所述目标报文被丢包,根据所述目标报文、所述表项编号、所述被访问次序和所述被访问内容,确认所述目标报文的丢包原因;
    根据所述丢包原因进行业务修复处理。
  5. 根据权利要求1所述的报文处理方法,其中,所述表项访问信息还包括所述报文转发表项的被访问内容;所述表项访问信息由所述网络处理器根据所述目标报文进行查表处理而得到包括:
    在所述网络处理器根据所述目标报文进行查表处理的过程中,获取所述表项编号、所述被访问次序和所述被访问内容;
    根据所述表项编号、所述被访问次序和所述被访问内容得到候选访问信息;以及
    当所述网络处理器完成对所述目标报文的查表处理后,在所述候选访问信息中设置报文处理标记信息,得到所述表项访问信息。
  6. 根据权利要求5所述的报文处理方法,其中,所述根据所述表项编号、所述被访问次序和所述被访问内容得到候选访问信息,包括:
    当确定所述表项编号、所述被访问次序或所述被访问内容中的至少一个未被存储,将所述表项编号、所述被访问次序和所述被访问内容进行存储,得到候选访问信息。
  7. 根据权利要求5所述的报文处理方法,其中,所述表项访问信息由所述网络处理器根据所述目标报文进行查表处理而得到还包括:
    当确定所述表项编号、所述被访问次序和所述被访问内容已被存储,不对所述表项编号、 所述被访问次序和所述被访问内容进行存储。
  8. 一种网络处理器,包括:
    报文获取模块,被设置为获取目标报文;
    表项信息获取模块,被设置为根据所述目标报文获取表项访问信息,其中,所述表项访问信息由所述网络处理器根据所述目标报文进行查表处理而得到,所述表项访问信息包括被访问的报文转发表项的表项编号、所述报文转发表项的被访问次序和报文处理标记信息,所述报文处理标记信息用于表征所述网络处理器对所述目标报文的处理结果;以及
    报文处理模块,被设置为根据所述表项编号、所述被访问次序和所述报文处理标记信息对所述目标报文进行数据处理。
  9. 根据权利要求8所述的网络处理器,其中,所述网络处理器还包括:
    可视化展示单元,被设置为显示所述表项访问信息或者提供所述表项访问信息的下载路径。
  10. 根据权利要求8所述的网络处理器,其中,所述网络处理器还包括:
    候选信息生成模块,被设置为在所述网络处理器根据所述目标报文进行查表处理的过程中,获取所述表项编号、所述被访问次序和所述被访问内容,并根据所述表项编号、所述被访问次序和所述被访问内容得到候选访问信息;
    表项信息生成模块,被设置为当所述网络处理器完成对所述目标报文的查表处理后,在所述候选访问信息中设置报文处理标记信息,以得到所述表项访问信息。
  11. 一种网络处理器,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至7中任意一项所述的报文处理方法。
  12. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至7中任意一项所述的报文处理方法。
PCT/CN2022/099901 2021-06-29 2022-06-20 报文处理方法、网络处理器及存储介质 WO2023273939A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110727433.7A CN115550153A (zh) 2021-06-29 2021-06-29 报文处理方法、网络处理器及存储介质
CN202110727433.7 2021-06-29

Publications (1)

Publication Number Publication Date
WO2023273939A1 true WO2023273939A1 (zh) 2023-01-05

Family

ID=84691237

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099901 WO2023273939A1 (zh) 2021-06-29 2022-06-20 报文处理方法、网络处理器及存储介质

Country Status (2)

Country Link
CN (1) CN115550153A (zh)
WO (1) WO2023273939A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714950A (zh) * 2009-12-15 2010-05-26 中兴通讯股份有限公司 实现故障定位的方法和装置
US20140314086A1 (en) * 2013-04-19 2014-10-23 Entuity Limited Querying a traffic forwarding table
CN104954258A (zh) * 2014-03-26 2015-09-30 中兴通讯股份有限公司 数据报文处理方法、装置及开放流交换机
US20150281100A1 (en) * 2014-03-27 2015-10-01 Fujitsu Limited Apparatus and method for selecting a flow to be changed upon congestion occurrence
CN107395381A (zh) * 2016-05-16 2017-11-24 中兴通讯股份有限公司 一种报文处理方法、装置及系统
CN110071853A (zh) * 2019-04-30 2019-07-30 新华三技术有限公司 一种报文统计方法及网络设备
CN112350844A (zh) * 2019-08-09 2021-02-09 华为技术有限公司 用于数据传输的方法和装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714950A (zh) * 2009-12-15 2010-05-26 中兴通讯股份有限公司 实现故障定位的方法和装置
US20140314086A1 (en) * 2013-04-19 2014-10-23 Entuity Limited Querying a traffic forwarding table
CN104954258A (zh) * 2014-03-26 2015-09-30 中兴通讯股份有限公司 数据报文处理方法、装置及开放流交换机
US20150281100A1 (en) * 2014-03-27 2015-10-01 Fujitsu Limited Apparatus and method for selecting a flow to be changed upon congestion occurrence
CN107395381A (zh) * 2016-05-16 2017-11-24 中兴通讯股份有限公司 一种报文处理方法、装置及系统
CN110071853A (zh) * 2019-04-30 2019-07-30 新华三技术有限公司 一种报文统计方法及网络设备
CN112350844A (zh) * 2019-08-09 2021-02-09 华为技术有限公司 用于数据传输的方法和装置

Also Published As

Publication number Publication date
CN115550153A (zh) 2022-12-30

Similar Documents

Publication Publication Date Title
WO2019134226A1 (zh) 一种日志收集方法、装置、终端设备及存储介质
CN106815054B (zh) 一种刷新bmc固件的方法及装置
WO2019019394A1 (zh) 客户端异常定位方法、装置、计算机设备和存储介质
CN107562556B (zh) 故障的恢复方法、恢复装置及存储介质
US11310140B2 (en) Mitigating failure in request handling
WO2019001312A1 (zh) 实现告警关联的方法、装置以及计算机可读存储介质
CN106657192B (zh) 一种用于呈现服务调用信息的方法与设备
US20130326478A1 (en) Version labeling in a version control system
US20160072688A1 (en) Fault monitoring in multi-domain networks
CN113220540B (zh) 业务管理方法、装置、计算机设备和存储介质
CN111475376A (zh) 处理测试数据的方法、装置、计算机设备和存储介质
CN108108186A (zh) 一种基于excel的芯片寄存器特性编码方法
CN112581018A (zh) 一种流程任务管理方法、系统、装置以及存储介质
CN116955097A (zh) 测试流程的展示方法、装置和测试流程展示系统
WO2023273939A1 (zh) 报文处理方法、网络处理器及存储介质
CN105743725A (zh) 一种测试应用程序的方法和装置
CN112350890B (zh) 报文处理方法、装置、服务器及存储介质
CN113347654B (zh) 一种针对退服基站的故障类型确定方法和装置
CN106358220A (zh) 异常联系人信息的检测方法、装置及系统
CN110647463B (zh) 一种恢复测试断点的方法、装置、电子设备
CN112351050A (zh) 镜像数据流的方法、装置、通信设备及存储介质
CN115757162A (zh) 一种基于函数链路的高效测试用例执行方法
CN112769928B (zh) 一种基于业务场景的信息交互方法及设备
CN111274143B (zh) 埋点测试方法、装置、设备及存储介质
CN113448745A (zh) 服务请求的追踪方法、装置及电子设备

Legal Events

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

Ref document number: 22831757

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE