A method, device, equipment and readable medium for rapid analysis of IOCB

By using JSON format IOCB description files and C# data structure sets for automatic parsing, the problem of large workload and error-prone QLogic FC card IOCB analysis is solved, and the analysis efficiency is improved.

CN115238646BActive Publication Date: 2025-08-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210912747.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-31
Publication Date
2025-08-29
Estimated Expiration
2042-07-31

AI Technical Summary

Technical Problem

In the era of cloud computing, it is a lot of work to analyze the IOCB content of QLogic FC cards, and the analysis cycle is long and error-prone.

Method used

The IOCB description file stored in JSON format is processed and parsed through the IOCB description set, and matched and displayed using the C# data structure set to achieve automatic analysis and display.

Benefits of technology

It significantly reduces the probability of errors when manually processing the content of the protocol and improves the efficiency of IOCB data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115238646B_ABST
    Figure CN115238646B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus, device, and readable medium for rapidly analyzing IOCBs. The method comprises: reading an IOCB description file stored in JSON format into an IOCB description set according to IOCB entries and storing the data in memory; obtaining and processing the IOCB raw data; matching each processed IOCB raw data entry with configuration data in the IOCB description set, and parsing the IOCB raw data based on the matched IOCB description content; and displaying the parsed content according to preconfigured field presentation formats and corresponding text descriptions. The present invention accelerates the time it takes maintenance personnel to analyze QLogic FC card IOCB data and significantly reduces the probability of errors when manually processing protocol content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and more particularly to a method, apparatus, device, and readable medium for quickly analyzing an IOCB. Background Art

[0002] In the cloud computing era, massive amounts of data need to be written and read. Fibre Channel (FC) offers the dual advantages of both channel and network connectivity. It boasts high bandwidth, high reliability, high stability, and resistance to electromagnetic interference. It provides highly stable and reliable fiber optic connections, making it easy to build large-scale data transmission and communication networks. However, when maintaining FC devices with QLogic cards, analyzing IOCB (IO Request Structure) data is often necessary. This analysis, based on first-hand data, is labor-intensive, time-consuming, and prone to errors. Summary of the Invention

[0003] In view of this, the purpose of the embodiments of the present invention is to provide a method, apparatus, device, and readable medium for quickly analyzing IOCBs. By using the technical solution of the present invention, maintenance personnel can accelerate the analysis time of QLogic FC card IOCB data and significantly reduce the probability of errors when manually processing protocol content.

[0004] Based on the above objectives, one aspect of an embodiment of the present invention provides a method for quickly analyzing an IOCB, comprising the following steps:

[0005] Read the IOCB description file stored in JSON format into the IOCB description set according to the IOCB entries and store it in memory;

[0006] Obtaining IOCB raw data and processing the obtained IOCB raw data;

[0007] Use each processed IOCB raw data to match the configuration data in the IOCB description set, and parse the IOCB raw data according to the matched IOCB description content;

[0008] The parsed content is displayed according to the pre-configured different field presentation formats and corresponding text descriptions.

[0009] According to one embodiment of the present invention, the IOCB description set is an abstract C# data structure set, which stores a unique identification code for each IOCB description file and saves descriptive text describing the length, presentation format and / or meaning of each known data field of the IOCB data.

[0010] According to one embodiment of the present invention, using each processed IOCB raw data to match the configuration data in the IOCB description set includes:

[0011] Obtain the unique identification code for each piece of processed IOCB raw data;

[0012] The unique identification code of the IOCB raw data is matched with the unique identification code recorded in the IOCB description file in the IOCB description set to obtain the configuration data.

[0013] According to one embodiment of the present invention, obtaining IOCB raw data and processing the obtained IOCB raw data includes:

[0014] Check whether the format of each IOCB raw data is incorrect;

[0015] In response to the format of the IOCB original data being correct, the IOCB original data in text form is converted into a real IOCB data block.

[0016] Another aspect of the embodiments of the present invention further provides a device for rapidly analyzing IOCB, the device comprising:

[0017] A loading module is configured to read the IOCB description file stored in JSON format into the IOCB description set according to the IOCB entries and store the IOCB description file in the memory.

[0018] The processing module is configured to obtain the IOCB raw data and process the obtained IOCB raw data;

[0019] A parsing module, wherein the parsing module is configured to use each processed IOCB raw data to match the configuration data in the IOCB description set, and parse the IOCB raw data according to the matched IOCB description content;

[0020] The display module is configured to display the parsed content according to pre-configured different field display formats and corresponding text descriptions.

[0021] According to one embodiment of the present invention, the IOCB description set is an abstract C# data structure set, which stores a unique identification code for each IOCB description file and saves descriptive text describing the length, presentation format and / or meaning of each known data field of the IOCB data.

[0022] According to one embodiment of the present invention, the parsing module is further configured to:

[0023] Obtain the unique identification code for each piece of processed IOCB raw data;

[0024] The unique identification code of the IOCB raw data is matched with the unique identification code recorded in the IOCB description file in the IOCB description set to obtain the configuration data.

[0025] According to one embodiment of the present invention, the processing module is further configured to:

[0026] Check whether the format of each IOCB raw data is incorrect;

[0027] In response to the format of the IOCB original data being correct, the IOCB original data in text form is converted into a real IOCB data block.

[0028] Another aspect of the embodiments of the present invention further provides a computer device, the computer device comprising:

[0029] at least one processor; and

[0030] The memory stores computer instructions that can be run on the processor, and when the instructions are executed by the processor, the steps of any of the above methods are implemented.

[0031] Another aspect of the embodiments of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of any one of the above methods are implemented.

[0032] The present invention has the following beneficial technical effects: the method for quickly analyzing IOCBs provided by the embodiment of the present invention comprises the following steps: reading an IOCB description file stored in JSON format into an IOCB description set according to IOCB entries and storing the result in memory; obtaining IOCB raw data and processing the obtained IOCB raw data; matching each processed IOCB raw data item with configuration data in the IOCB description set, and parsing the IOCB raw data based on the matched IOCB description content; and displaying the parsed content according to pre-configured different field presentation formats and corresponding text descriptions. This technical solution can speed up the analysis time of QLogic FC card IOCB data by maintenance personnel and significantly reduce the probability of errors in manual protocol content processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying any creative work.

[0034] Figure 11 is a schematic flow chart of a method for quickly analyzing IOCB according to one embodiment of the present invention;

[0035] Figure 2 A schematic diagram of an IOCB rapid analysis software system framework according to an embodiment of the present invention;

[0036] Figure 3 Schematic diagram of a device for rapidly analyzing IOCB according to one embodiment of the present invention;

[0037] Figure 4 is a schematic diagram of a computer device according to one embodiment of the present invention;

[0038] Figure 5 FIG. 1 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0040] Based on the above objectives, a first aspect of the embodiments of the present invention provides an embodiment of a method for quickly analyzing IOCB. Figure 1 Shown is a schematic flow chart of the method.

[0041] like Figure 1 As shown in , the method may include the following steps:

[0042] S1 reads the IOCB description file stored in JSON format into the IOCB description set according to the IOCB entries and stores it in the memory. Figure 2 The analysis system shown in the figure implements the method of the present invention, and the analysis system can be developed and implemented using C# language, such as Figure 2 As shown, the IOCB description loading engine reads IOCB description files stored in JSON format into the IOCB description set one by one, according to the IOCB entries. The IOCB description set is an abstract C# data structure that defines a unique identifier for each IOCB description file and, to a certain extent, stores the length of each field describing the IOCB data, the display format (using decimal, hexadecimal, binary, MAP type, etc.), or descriptive text of each possible known data meaning. The IOCB loading engine is primarily responsible for converting JSON data, which can be easily read and modified by humans, into the above IOCB description set, which is temporarily stored in memory for use by subsequent functional modules.

[0043] S2 obtains and processes the IOCB raw data. The IOCB raw data loading engine is primarily responsible for performing preliminary format error checking on the IOCB raw data received by maintenance personnel. After completion, the text-based IOCB raw data is converted into actual IOCB data blocks and fed to the IOCB data parsing module.

[0044] S3 uses each processed IOCB raw data item to match the configuration data in the IOCB description set and parses the IOCB raw data based on the matched IOCB description content. The IOCB data parsing module matches the configuration data in the IOCB description set based on the unique identification code of each processed IOCB raw data item and parses the current IOCB raw data based on the matched IOCB description content.

[0045] S4 displays the parsed content according to the pre-configured different field presentation formats and corresponding text descriptions. The parsed content is displayed on the software system interface according to the pre-configured different field presentation formats and corresponding text descriptions. This software system is developed and implemented using the C# language. Through this analysis system, acquired IOCB raw data can be imported and the message data content automatically parsed, helping us quickly locate problems. This analysis system parses the corresponding IOCB fields using pre-entered IOCB parsing description files. Maintenance personnel can improve the parsing of specific IOCBs and add new IOCB parsing by modifying or appending IOCB parsing description fields.

[0046] By using the technical solution of the present invention, the analysis time of QLogic FC card IOCB data by maintenance personnel can be accelerated, and the probability of errors in manual processing of protocol content can be significantly reduced.

[0047] In a preferred embodiment of the present invention, the IOCB description set is an abstract C# data structure set. The C# data structure set stores a unique identifier for each IOCB description file and contains descriptive text describing the length of each field in the IOCB data, the display format, and / or the meaning of each known data element. Display formats include decimal, hexadecimal, binary, and MAP types.

[0048] In a preferred embodiment of the present invention, using each processed IOCB raw data to match the configuration data in the IOCB description set includes:

[0049] Obtain the unique identification code for each piece of processed IOCB raw data;

[0050] The unique identification code of the IOCB raw data is matched with the unique identification code recorded in the IOCB description file in the IOCB description set to obtain the configuration data.

[0051] In a preferred embodiment of the present invention, obtaining IOCB raw data and processing the obtained IOCB raw data includes:

[0052] Check whether the format of each IOCB raw data is incorrect;

[0053] In response to the format of the IOCB original data being correct, the IOCB original data in text form is converted into a real IOCB data block.

[0054] The present invention uses a graphical interface software system to load and parse large amounts of IOCB data through program algorithms, effectively speeding up the analysis time of QLogic FC card IOCB data for maintenance personnel in the corresponding field and significantly reducing the probability of errors when manually processing obscure protocol content.

[0055] It should be noted that those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM). The embodiment of the above-mentioned computer program can achieve the same or similar effects as any of the corresponding aforementioned method embodiments.

[0056] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0057] Based on the above purpose, the second aspect of the embodiment of the present invention provides a device for quickly analyzing IOCB, such as Figure 3 As shown, the apparatus 200 includes:

[0058] A loading module is configured to read the IOCB description file stored in JSON format into the IOCB description set according to the IOCB entries and store the IOCB description file in the memory.

[0059] The processing module is configured to obtain the IOCB raw data and process the obtained IOCB raw data;

[0060] A parsing module, wherein the parsing module is configured to use each processed IOCB raw data to match the configuration data in the IOCB description set, and parse the IOCB raw data according to the matched IOCB description content;

[0061] The display module is configured to display the parsed content according to pre-configured different field display formats and corresponding text descriptions.

[0062] In a preferred embodiment of the present invention, the IOCB description set is an abstract C# data structure set, which stores a unique identification code for each IOCB description file and saves descriptive text describing the length, presentation format, and / or meaning of each known data field of the IOCB data.

[0063] In a preferred embodiment of the present invention, the parsing module is further configured to:

[0064] Obtain the unique identification code for each piece of processed IOCB raw data;

[0065] The unique identification code of the IOCB raw data is matched with the unique identification code recorded in the IOCB description file in the IOCB description set to obtain the configuration data.

[0066] In a preferred embodiment of the present invention, the processing module is further configured to:

[0067] Check whether the format of each IOCB raw data is incorrect;

[0068] In response to the format of the IOCB original data being correct, the IOCB original data in text form is converted into a real IOCB data block.

[0069] Based on the above objectives, a third aspect of an embodiment of the present invention provides a computer device. Figure 4 FIG. 1 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 4 As shown, the embodiment of the present invention includes the following apparatus: at least one processor 21; and a memory 22, wherein the memory 22 stores computer instructions 23 that can be executed on the processor, and when the instructions are executed by the processor, the following method is implemented:

[0070] Read the IOCB description file stored in JSON format into the IOCB description set according to the IOCB entries and store it in memory;

[0071] Obtaining IOCB raw data and processing the obtained IOCB raw data;

[0072] Use each processed IOCB raw data to match the configuration data in the IOCB description set, and parse the IOCB raw data according to the matched IOCB description content;

[0073] The parsed content is displayed according to the pre-configured different field presentation formats and corresponding text descriptions.

[0074] In a preferred embodiment of the present invention, the IOCB description set is an abstract C# data structure set, which stores a unique identification code for each IOCB description file and saves descriptive text describing the length, presentation format, and / or meaning of each known data field of the IOCB data.

[0075] In a preferred embodiment of the present invention, using each processed IOCB raw data to match the configuration data in the IOCB description set includes:

[0076] Obtain the unique identification code for each piece of processed IOCB raw data;

[0077] The unique identification code of the IOCB raw data is matched with the unique identification code recorded in the IOCB description file in the IOCB description set to obtain the configuration data.

[0078] In a preferred embodiment of the present invention, obtaining IOCB raw data and processing the obtained IOCB raw data includes:

[0079] Check whether the format of each IOCB raw data is incorrect;

[0080] In response to the format of the IOCB original data being correct, the IOCB original data in text form is converted into a real IOCB data block.

[0081] Based on the above objectives, a fourth aspect of the embodiments of the present invention provides a computer-readable storage medium. Figure 5 FIG. 1 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 5 As shown, the computer readable storage medium 31 stores a computer program 32 that performs the following method when executed by a processor:

[0082] Read the IOCB description file stored in JSON format into the IOCB description set according to the IOCB entries and store it in memory;

[0083] Obtaining IOCB raw data and processing the obtained IOCB raw data;

[0084] Use each processed IOCB raw data to match the configuration data in the IOCB description set, and parse the IOCB raw data according to the matched IOCB description content;

[0085] The parsed content is displayed according to the pre-configured different field presentation formats and corresponding text descriptions.

[0086] In a preferred embodiment of the present invention, the IOCB description set is an abstract C# data structure set, which stores a unique identification code for each IOCB description file and saves descriptive text describing the length, presentation format, and / or meaning of each known data field of the IOCB data.

[0087] In a preferred embodiment of the present invention, using each processed IOCB raw data to match the configuration data in the IOCB description set includes:

[0088] Obtain the unique identification code for each piece of processed IOCB raw data;

[0089] The unique identification code of the IOCB raw data is matched with the unique identification code recorded in the IOCB description file in the IOCB description set to obtain the configuration data.

[0090] In a preferred embodiment of the present invention, obtaining IOCB raw data and processing the obtained IOCB raw data includes:

[0091] Check whether the format of each IOCB raw data is incorrect;

[0092] In response to the format of the IOCB original data being correct, the IOCB original data in text form is converted into a real IOCB data block.

[0093] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0094] In addition, the above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.

[0095] It will also be appreciated by those skilled in the art that the various exemplary logic blocks, modules, circuits and algorithmic steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given of the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0096] In one or more exemplary designs, the function can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transmit a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special-purpose computer. As an example and not limitation, the computer-readable medium can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of instructions or data structures and can be accessed by a general or special-purpose computer or a general or special-purpose processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves are used to send software from a website, server, or other remote source, the above-mentioned coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are all included in the definition of medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0097] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless expressly limited to the singular.

[0098] It should be understood that, as used herein, the singular forms "a" and "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" is intended to include any and all possible combinations of one or more of the associated listed items.

[0099] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0100] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program instructing the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk, or an optical disk, etc.

[0101] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples. Within the spirit of the embodiments of the present invention, the technical features of the above embodiments or different embodiments may be combined, and there are many other variations of different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the scope of protection of the embodiments of the present invention.

Claims

1. A method for rapid analysis of IOCB, characterized in that: The following steps are involved: Read the IOCB description file stored in JSON format into the IOCB description set according to the IOCB entries and store it in memory; Obtaining IOCB raw data and processing the obtained IOCB raw data; Use each processed IOCB raw data to match the configuration data in the IOCB description set, and parse the IOCB raw data based on the matched IOCB description content. The IOCB description set is an abstract C# data structure set that stores the unique identification code of each IOCB description file and saves descriptive text describing the length, presentation format, and / or meaning of each known data field in the IOCB data. Display the parsed content according to the pre-configured different field presentation formats and corresponding text descriptions; Using each processed IOCB raw data to match the configuration data in the IOCB description set includes: Obtain the unique identification code for each piece of processed IOCB raw data; The unique identification code of the IOCB raw data is matched with the unique identification code recorded in the IOCB description file in the IOCB description set to obtain the configuration data.

2. The method according to claim 1, characterized in that Obtaining IOCB raw data and processing the obtained IOCB raw data include: Check whether the format of each IOCB raw data is incorrect; In response to the format of the IOCB original data being correct, the IOCB original data in text form is converted into a real IOCB data block.

3. A device for rapid analysis of IOCB, characterized in that: The device comprises: A loading module configured to read the IOCB description file stored in JSON format into the IOCB description set according to the IOCB entries and store the IOCB description file in the memory; a processing module configured to obtain IOCB raw data and process the obtained IOCB raw data; a parsing module configured to match each processed IOCB raw data with configuration data in an IOCB description set, and parse the IOCB raw data based on the matched IOCB description content, wherein the IOCB description set is an abstract C# data structure set that stores a unique identification code for each IOCB description file and stores descriptive text describing the length, presentation format, and / or meaning of each known data field in the IOCB data; A display module configured to display the parsed content according to pre-configured different field display formats and corresponding text descriptions; The parsing module is further configured to: Obtain the unique identification code for each piece of processed IOCB raw data; The unique identification code of the IOCB raw data is matched with the unique identification code recorded in the IOCB description file in the IOCB description set to obtain the configuration data.

4. The device according to claim 3, characterized in that The processing module is further configured to: Check whether the format of each IOCB raw data is incorrect; In response to the format of the IOCB original data being correct, the IOCB original data in text form is converted into a real IOCB data block.

5. A computer device, characterized in that: include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 2.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Automatic FC block storage processing method and system based on domestic platform

    CN113849136A

  • Generic Data Collection Plugin and Configuration File Language for SMI-S Based Agents

    US20120047347A1