CN114205423B - Method, device, equipment and medium for adapting private protocol based on IPMI protocol - Google Patents

Method, device, equipment and medium for adapting private protocol based on IPMI protocol Download PDF

Info

Publication number
CN114205423B
CN114205423B CN202210143556.0A CN202210143556A CN114205423B CN 114205423 B CN114205423 B CN 114205423B CN 202210143556 A CN202210143556 A CN 202210143556A CN 114205423 B CN114205423 B CN 114205423B
Authority
CN
China
Prior art keywords
data
protocol
ipmi
ipmi protocol
response
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.)
Active
Application number
CN202210143556.0A
Other languages
Chinese (zh)
Other versions
CN114205423A (en
Inventor
关启芃
赵勇
乔卫海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lianxin Hongfang Beijing Technology Co ltd
Original Assignee
Lianxin Hongfang Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lianxin Hongfang Beijing Technology Co ltd filed Critical Lianxin Hongfang Beijing Technology Co ltd
Priority to CN202210143556.0A priority Critical patent/CN114205423B/en
Publication of CN114205423A publication Critical patent/CN114205423A/en
Application granted granted Critical
Publication of CN114205423B publication Critical patent/CN114205423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/03Protocol definition or specification 
    • 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/08Protocols for interworking; Protocol conversion

Abstract

The invention relates to an IPMI protocol-based method, a device, equipment and a medium for adapting a private protocol, which comprises the following steps: obtaining IPMI protocol description data to be processed, and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded; obtaining IPMI protocol main body item data from the IPMI protocol data to be coded, and obtaining an IPMI protocol format in a UDP (user datagram protocol) public protocol; carrying out adaptation conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain IPMI protocol data to be tested; splitting an IPMI protocol to be tested to obtain request body data and response analysis rule data, and after data simulation is carried out on the request body data, acquiring protocol response data corresponding to the request body data; and inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested passes. The method and the device improve the efficiency of adapting the IPMI protocols of different hardware manufacturers.

Description

Method, device, equipment and medium for adapting private protocol based on IPMI protocol
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for adapting a private protocol based on an IPMI protocol.
Background
The IPMI protocol refers to an intelligent platform management interface, and a user can monitor physical health characteristics of a server in different operating systems so as to reduce system cost of the server.
The existing IPMI protocol is generally used in hardware out-of-band management, and each hardware manufacturer has a unique IPMI private protocol and a corresponding protocol analysis tool for monitoring the physical health characteristics of a corresponding server after the hardware is installed to the server.
For the above related technologies, the inventor thinks that there is a defect of low efficiency when the IPMI protocol of different hardware manufacturers is adapted.
Disclosure of Invention
In order to improve the efficiency of adapting the IPMI protocols of different hardware manufacturers, the application provides an adaptive private protocol method, an adaptive private protocol device, an adaptive private protocol equipment and an adaptive private protocol medium based on the IPMI protocols.
The above object of the present invention is achieved by the following technical solutions:
an IPMI (Intelligent platform management interface) protocol based adaptive private protocol method, which comprises the following steps:
obtaining IPMI protocol description data to be processed, and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded;
obtaining IPMI protocol main body item data from the IPMI protocol data to be coded, and obtaining an IPMI protocol format in a UDP (user datagram protocol) public protocol;
carrying out adaptation conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain IPMI protocol data to be tested;
splitting the IPMI protocol to be tested to obtain request body data and response analysis rule data, and after data simulation is carried out on the request body data, acquiring protocol response data corresponding to the request body data;
and inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested is passed.
By adopting the technical scheme, in the IPMI private protocol in the existing hardware, the description of each hardware manufacturer to the IPMI protocol is different, if the IPMI protocol needs to be adapted, relevant technicians need to learn the corresponding IPMI protocol, UDP protocol, encryption algorithm and other contents, and then a code file analyzed by the corresponding protocol is edited, so that the learning cost of the relevant technicians is high, and the efficiency is low, therefore, after obtaining the IPMI protocol description data to be processed, normalization processing is performed, so that the normalization and the uniformity of the obtained IPMI protocol data to be coded can be improved, and subsequent processing is facilitated; the method comprises the steps of obtaining an IPMI protocol format in a UDP public protocol, splitting IPMI protocol main body item data from the IPMI protocol data to be coded, and performing adaptation conversion on specific contents in the protocol by using the IPMI protocol format, so that compatibility of an IPMI private protocol of hardware is realized, and after simulating and testing request body data, completing the adaptation compatibility of the IPMI private protocol of the hardware.
The present application may be further configured in a preferred example to: after the step of obtaining the IPMI protocol description data to be processed and performing normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be encoded, the method for adapting to a private protocol based on an IPMI protocol further includes:
identifying the IPMI protocol description data to be processed through semantic analysis to obtain private protocol rule data;
and converting the private protocol rule data format into configuration file data.
By adopting the technical scheme, because the existing IPMI private protocol is usually described in a text form, such as the form of a protocol specification, a computer cannot identify the IPMI private protocol and is compiled into a code after being understood by technical personnel.
The present application may be further configured in a preferred example to: the adapting conversion of the IPMI protocol main body item data according to the IPMI protocol format to obtain the IPMI protocol data to be tested specifically comprises the following steps:
acquiring a data type corresponding to the IPMI protocol main body item data from the configuration file data, and acquiring corresponding maximum byte length data according to the data type;
acquiring the byte length of the IPMI protocol main body item data, judging whether to carry out bit supplementing processing according to the byte length and the byte maximum length data, if so, supplementing the corresponding byte number, then carrying out adaptation conversion, and if not, directly carrying out the adaptation conversion.
By adopting the technical scheme, the corresponding data type is identified according to the requirement of the configuration file data in the corresponding IPMI protocol main body item data, bit filling processing and corresponding adaptive conversion are carried out according to the data type, and the word form IPMI private protocol can be quickly and automatically converted into a program readable by a computer program.
The present application may be further configured in a preferred example to: before the step of inputting the protocol response data into the response parsing rule data for parsing, the IPMI protocol-based adapted private protocol method further includes:
acquiring conversion content data from the adaptation conversion corresponding to the IPMI protocol main body;
and generating reverse conversion content data corresponding to each conversion content data one by one, and generating the response analysis rule data corresponding to the adaptive conversion according to the reverse conversion content.
By adopting the technical scheme, the response analysis rule data for analyzing the request data can be obtained by acquiring the corresponding reverse conversion content data.
The present application may be further configured in a preferred example to: the inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested specifically includes:
intercepting IPMI response body data from the protocol response data according to bits;
and analyzing the IPMI response main body data step by step according to the reverse conversion content data in the response analysis rule data to obtain the to-be-tested data structure.
By adopting the technical scheme, the specific content of the response can be positioned by acquiring the IPMI response main body data, so that the corresponding result can be rapidly analyzed.
The second objective of the present invention is achieved by the following technical solutions:
an IPMI protocol based adapted private protocol device, comprising:
the protocol description module is used for acquiring IPMI protocol description data to be processed and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded;
the protocol format acquisition module is used for acquiring IPMI protocol main body item data from the IPMI protocol data to be coded and acquiring an IPMI protocol format in a UDP (user datagram protocol) public protocol;
the protocol coding module is used for carrying out adaptive conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain IPMI protocol data to be tested;
the protocol response module is used for splitting the IPMI protocol to be tested to obtain request body data and response analysis rule data, and acquiring protocol response data corresponding to the request body data after the request body data is subjected to data simulation;
and the protocol testing module is used for inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested is passed.
By adopting the technical scheme, in the IPMI private protocol in the existing hardware, the description of each hardware manufacturer to the IPMI protocol is different, if the IPMI protocol needs to be adapted, relevant technicians need to learn the corresponding IPMI protocol, UDP protocol, encryption algorithm and other contents, and then a code file analyzed by the corresponding protocol is edited, so that the learning cost of the relevant technicians is high, and the efficiency is low, therefore, after obtaining the IPMI protocol description data to be processed, normalization processing is performed, so that the normalization and the uniformity of the obtained IPMI protocol data to be coded can be improved, and subsequent processing is facilitated; the method comprises the steps of obtaining an IPMI protocol format in a UDP public protocol, splitting IPMI protocol main body item data from the IPMI protocol data to be coded, and performing adaptation conversion on specific contents in the protocol by using the IPMI protocol format, so that compatibility of an IPMI private protocol of hardware is realized, and after simulating and testing request body data, completing the adaptation compatibility of the IPMI private protocol of the hardware.
The third purpose of the present application is achieved by the following technical solutions:
a computer device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the steps of the above adapted proprietary protocol method based on IPMI protocol when executing said computer program.
The fourth purpose of the present application is achieved by the following technical solutions:
a computer readable storage medium, storing a computer program which, when executed by a processor, performs the steps of the above adapted proprietary protocol method based on IPMI protocol.
In summary, the present application includes at least one of the following beneficial technical effects:
1. after obtaining the IPMI protocol description data to be processed, normalization processing is carried out, so that normalization and uniformity of the obtained IPMI protocol data to be coded can be improved, and subsequent processing is facilitated;
2. obtaining an IPMI protocol format in a UDP public protocol, splitting IPMI protocol main body item data from the IPMI protocol data to be coded, and performing adaptation conversion on specific contents in the protocol by using the IPMI protocol format so as to realize the compatibility of the hardware IPMI private protocol;
3. through the technology of semantic analysis, the rule of IPMI protocol description data to be processed is identified, and the private protocol rule data is obtained, so that the configuration file data can be quickly obtained, the adaptation efficiency of the IPMI private protocol is further improved, and the difficulty of technical personnel in learning related knowledge is reduced.
Drawings
FIG. 1 is a flow chart of a method for adapting a proprietary protocol based on IPMI protocol according to an embodiment of the present application;
FIG. 2 is a flow chart of another implementation of a method for adapting a proprietary protocol based on IPMI protocol according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an implementation of step S30 in the method for adapting a proprietary protocol based on IPMI protocol according to an embodiment of the present application;
FIG. 4 is a flow chart of another implementation of a method for adapting a proprietary protocol based on IPMI protocol according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating an implementation of step S50 in the method for adapting a proprietary protocol based on IPMI protocol according to an embodiment of the present application;
FIG. 6 is a schematic block diagram of an IPMI compliant proprietary protocol device in an embodiment of the present application;
fig. 7 is a schematic diagram of an apparatus in an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
In an embodiment, as shown in fig. 1, the present application discloses an IPMI protocol-based method for adapting a private protocol, which specifically includes the following steps:
s10: and obtaining IPMI protocol description data to be processed, and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded.
In this embodiment, the IPMI protocol description data to be processed refers to an IPMI private protocol adapted to different hardware vendors. The IPMI protocol data to be coded refers to data which needs to be converted into an IPMI private protocol compatible with a computer program.
Specifically, because the description contents of the IPMI protocol of different hardware manufacturers are usually written, for example, by way of description, so that a person can read and understand the description contents conveniently and write the description contents into a code corresponding to the IPMI protocol for recognition by a computer program.
Further, by collecting the obtained IPMI protocol description data to be processed, normalization processing such as de-duplication and sorting is performed on the IPMI protocol data to be processed, so that the IPMI protocol data to be coded is obtained.
S20: and obtaining IPMI protocol main body item data from the IPMI protocol data to be coded, and obtaining an IPMI protocol format in the UDP public protocol.
In this embodiment, the IPMI protocol body item data refers to data of contents of specific interactions in the protocol, among the IPMI protocol data to be encoded. The IPMI protocol format refers to the format requirements of the IPMI protocol that can be recognized by a computer program.
Specifically, the content sent by the specific Protocol is located from the data of the IPMI Protocol to be coded, and is used as the data of the IPMI Protocol main body item, and the message format corresponding to the IPMI, such as the port number, the length, the check value and the like, is obtained from the UDP common Protocol, i.e., User Datagram Protocol, and the User data packet Protocol, so as to generate a corresponding configuration file, thereby being capable of being converted into a code program recognizable by a computer program according to the requirements in the IPMI Protocol main body item of a hardware manufacturer.
S30: and carrying out adaptation conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain the IPMI protocol data to be tested.
In the present embodiment, the IPMI protocol data to be tested refers to data that has been converted into an IPMI protocol code that can be read by a computer program.
Specifically, the requirements for the IPMI protocol in the IPMI protocol body item data are input into the IPMI protocol format, i.e., into the configuration file, so as to convert the IPMI protocol body item data into the IPMI protocol data to be tested.
S40: the IPMI protocol to be tested is split to obtain request body data and response analysis rule data, and after the request body data is subjected to data simulation, protocol response data corresponding to the request body data is obtained.
In this embodiment, the request body data refers to specific contents of the communication request in the IPMI protocol. The response parsing rule data refers to a rule for parsing the request body data into a response message of the IPMI protocol. The protocol response data is response data corresponding to the request body data in the IPMI protocol.
Specifically, in a communication protocol, the communication protocol generally includes a request part for communication and response data obtained after receiving the content of the request part, and the request body data and the protocol response data in the present application correspond to the request part and the obtained response data, respectively. After the request volume data is obtained, the request volume data is sent to a preset receiving end for simulation, and therefore corresponding protocol response data is received.
S50: and inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested passes.
In this embodiment, the data structure to be tested refers to a data structure of response data obtained by analyzing the protocol response data.
Specifically, after splitting corresponding request body data from the IPMI protocol to be tested, obtaining a manner of performing adaptation conversion on the IPMI protocol main body item data in the IPMI protocol format, and generating corresponding response parsing rule data, for example, when performing adaptation conversion on the IPMI protocol main body item data, performing bit complement and system conversion on the IPMI protocol main body item data, and then performing reverse conversion according to the system conversion and removing the bytes of the complement according to the specific byte number and position of the complement, thereby obtaining the response data. And acquiring a data structure in the response data as a data structure to be tested. Further, if the data structure to be tested passes the verification test, the adaptation of the IPMI protocol description data to be processed is determined to be successful. The data structure to be tested can be checked manually or by presetting a template for data structure checking, and whether the content in the data structure to be tested conforms to the standard or not can be checked through the template.
In this embodiment, in the IPMI private protocol in the existing hardware, descriptions of each hardware manufacturer to the IPMI protocol are different, and if the IPMI protocol needs to be adapted, relevant technicians are required to learn the corresponding contents of the IPMI protocol, the UDP protocol, the encryption algorithm, and the like, and then a code file analyzed by the corresponding protocol is edited, so that the learning cost for the relevant technicians is high, and the efficiency is also low, therefore, after obtaining the IPMI protocol description data to be processed, normalization processing is performed, so that the normalization and the uniformity of the obtained IPMI protocol data to be encoded can be improved, and subsequent processing is facilitated; the method comprises the steps of obtaining an IPMI protocol format in a UDP public protocol, splitting IPMI protocol main body item data from IPMI protocol data to be coded, and carrying out adaptation conversion on specific contents in the protocol by utilizing the IPMI protocol format, so that the compatibility of the hardware IPMI private protocol is realized, and after simulating and testing request body data, the adaptation compatibility of the hardware IPMI private protocol is completed.
In an embodiment, as shown in fig. 2, the IPMI protocol data to be encoded includes message receiving data and message parsing data, and after step S10, the method for adapting a private protocol based on IPMI protocol further includes:
s101: and identifying IPMI protocol description data to be processed through semantic analysis to obtain private protocol rule data.
In this embodiment, the private protocol rule data refers to a rule for converting the IPMI private protocol in the hardware into a code that can be recognized by a computer program and performs corresponding data transmission.
Specifically, because the IPMI private protocol is usually written in a text form, and needs to be understood by a technician and written into a corresponding code file, a computer program cannot directly run the IPMI private protocol, and therefore, the application identifies the IPMI protocol description data to be processed by a semantic identification technology, and identifies the requirements for writing the IPMI private protocol, such as the data type, the byte length, whether the binary conversion is needed, whether the character recombination is needed, and the like, as the private protocol rule data.
S102: and converting the proprietary protocol rule data format into configuration file data.
In this embodiment, the profile data refers to a template that is recognizable by the computer program and used for sending and receiving corresponding data messages according to the IPMI private protocol.
Specifically, a request data rule to be sent and a rule of a corresponding response message are acquired from the private protocol rule data, and are converted into the configuration file data according to the rule in advance. The configuration file can also be configuration file data capable of converting different IPMI private protocols by collecting the IPMI private protocols of different hardware manufacturers, arranging the IPMI private protocols, carrying out unified semantic recognition and carrying out format conversion. After obtaining different IPMI private protocols, inputting the IPMI private protocol into the configuration file data can automatically convert the IPMI private protocol into a code which can be identified by a corresponding computer program, and when obtaining the IPMI private protocol which distinguishes the rule of the IPMI private protocol from the existing configuration file data, the IPMI private protocol can be converted into a configuration file which is in the new IPMI private protocol by the method of the steps S11-S12 of the application and updated into the existing configuration file data so as to enrich the content of the configuration file data.
In an embodiment, as shown in fig. 3, in step S30, the adapting and converting the IPMI protocol main body item data according to the IPMI protocol format to obtain the IPMI protocol data to be tested specifically includes:
s31: and acquiring the data type corresponding to the IPMI protocol main body item data from the configuration file data, and acquiring the corresponding maximum byte length data according to the data type.
Specifically, the data type includes, but is not limited to, integer type, floating point type, character string type, boolean type, and the like, and the IPMI protocol body data type is obtained by inputting the IPMI protocol body data into the configuration file data, and the maximum byte length data at the time of sending the request data is obtained according to the data type.
S32: obtaining the byte length of the IPMI protocol main item data, judging whether to perform bit complementing processing according to the byte length and the byte maximum length data, if so, performing adaptation conversion after complementing corresponding byte number, and if not, directly performing the adaptation conversion.
Specifically, the byte length of the IPMI protocol body item data is obtained, and if the byte length is smaller than the maximum byte length data, the adaptation conversion is performed after the corresponding bit complementing processing is performed according to the bit number of the difference between the byte length and the maximum byte length data, wherein the content of the adaptation conversion includes but is not limited to: judging whether byte sequences need to be recombined or not, judging whether fixed bytes are filled or not, and carrying out corresponding 2-system, 6-system or 8-system equivalent system conversion, wherein the specifically adapted conversion content is subject to identification from private protocol rule data; if the bit-filling processing is not needed, the above-mentioned adaptation conversion is directly performed.
In one embodiment, as shown in fig. 4, before step S50, the method for adapting a proprietary protocol based on IPMI protocol further includes:
s501: and acquiring conversion content data from the adaptation conversion corresponding to the IPMI protocol main body item data.
In the present embodiment, converting the content data refers to a manner of specifically converting the IPMI protocol body item data into the IPMI protocol code.
Specifically, when the IPMI protocol main body item data is subjected to adaptation conversion, a specific conversion step is recorded, as the conversion content data, for example, in the adaptation conversion process, if bit padding processing is required, a specific bit padded character and a character padding position are recorded and obtained; if the system conversion exists, recording and acquiring the system conversion mode, such as 10 system conversion to 2 system conversion, and taking the sequence and content of each conversion step as conversion content data.
S502: and generating reverse conversion content data corresponding to each conversion content data one by one, and generating response analysis rule data corresponding to the adaptive conversion according to the reverse conversion content.
Specifically, reverse conversion content data corresponding to the content of each step in the conversion content data is generated, for example, if bit complementing processing exists in the conversion content, the characters of the recorded part are removed; if there is a 10-system to 2-system conversion, the corresponding 2-system is converted into a 10-system, and the like, and the content and the steps of the specific reverse conversion constitute the corresponding response parsing rule data.
In an embodiment, as shown in fig. 5, in step S50, the inputting the protocol response data into the response parsing rule data for parsing to obtain the data structure to be tested specifically includes:
s51: the IPMI response body data is bit sliced from the protocol response data.
In the present embodiment, the IPMI response body data refers to data of a specific response.
Specifically, by acquiring response header information, that is, a unique identifier for identifying the response data, in the protocol response data, and by acquiring the byte number of the unique identifier, the IPMI response body data is bit-sliced from the protocol response data according to the byte number.
S52: and analyzing the IPMI response main body data step by step according to the reverse conversion content data in the response analysis rule data to obtain a to-be-tested data structure.
Specifically, according to the step in the reverse conversion content data in the response analysis rule data, the IPMI response main body data is gradually analyzed, thereby obtaining the data structure to be tested.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In one embodiment, an IPMI protocol-based adapted private protocol apparatus is provided, and the IPMI protocol-based adapted private protocol apparatus corresponds to the IPMI protocol-based adapted private protocol method in the above embodiments one to one. As shown in fig. 6, the IPMI protocol-based adaptive private protocol apparatus includes a protocol description module, a protocol format obtaining module, a protocol encoding module, a protocol response module, and a protocol testing module. The functional modules are explained in detail as follows:
the protocol description module is used for acquiring IPMI protocol description data to be processed and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded;
the protocol format acquisition module is used for acquiring IPMI protocol main body item data from the IPMI protocol data to be coded and acquiring the IPMI protocol format in the UDP public protocol;
the protocol coding module is used for carrying out adaptive conversion on the IPMI protocol main body item data according to the IPMI protocol format by the protocol to obtain IPMI protocol data to be tested;
the protocol response module is used for splitting the IPMI protocol to be tested to obtain request body data and response analysis rule data, and acquiring protocol response data corresponding to the request body data after the request body data is subjected to data simulation;
and the protocol testing module is used for inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested is passed.
Optionally, the adapted private protocol device based on the IPMI protocol further includes:
the semantic analysis module is used for identifying IPMI protocol description data to be processed through semantic analysis to obtain private protocol rule data;
and the configuration file generation module is used for converting the proprietary protocol rule data format into configuration file data.
Optionally, the protocol encoding module includes:
the type obtaining submodule is used for obtaining a data type corresponding to the IPMI protocol main body item data from the configuration file data and obtaining corresponding maximum byte length data according to the data type;
and the adaptation conversion submodule is used for acquiring the byte length of the IPMI protocol main item data, judging whether to perform bit supplement processing according to the byte length and the byte maximum length data, performing adaptation conversion after supplementing the corresponding byte number if the bit supplement processing is performed, and directly performing adaptation conversion if the bit supplement processing is not performed.
Optionally, the adapted private protocol device based on the IPMI protocol further includes:
the content acquisition module is used for acquiring conversion content data from adaptation conversion corresponding to the IPMI protocol main body;
and the analysis rule acquisition module is used for generating reverse conversion content data corresponding to each conversion content data one by one and generating response analysis rule data corresponding to the adaptive conversion according to the reverse conversion content.
Optionally, the protocol testing module includes:
the main body data acquisition module is used for intercepting the IPMI response main body data from the protocol response data according to bits;
and the response analysis module is used for gradually analyzing the IPMI response main body data according to the reverse conversion content data in the response analysis rule data to obtain a to-be-tested data structure.
For the specific definition of the IPMI protocol based adapted private protocol device, reference may be made to the above definition of the IPMI protocol based adapted private protocol method, which is not described herein again. The modules in the IPMI protocol-based adapted proprietary protocol apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the rules of the IPMI private protocol and the corresponding configuration files. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an adapted proprietary protocol method based on the IPMI protocol.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
obtaining IPMI protocol description data to be processed, and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded;
obtaining IPMI protocol main body item data from IPMI protocol data to be coded, and obtaining an IPMI protocol format in a UDP (user datagram protocol) public protocol;
carrying out adaptation conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain IPMI protocol data to be tested;
splitting an IPMI protocol to be tested to obtain request body data and response analysis rule data, and after data simulation is carried out on the request body data, acquiring protocol response data corresponding to the request body data;
and inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested passes.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
obtaining IPMI protocol description data to be processed, and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded;
obtaining IPMI protocol main body item data from IPMI protocol data to be coded, and obtaining an IPMI protocol format in a UDP (user datagram protocol) public protocol;
carrying out adaptation conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain IPMI protocol data to be tested;
splitting an IPMI protocol to be tested to obtain request body data and response analysis rule data, and after data simulation is carried out on the request body data, acquiring protocol response data corresponding to the request body data;
and inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested passes.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.

Claims (10)

1. An IPMI (intelligent platform management interface) protocol-based adaptive private protocol method, comprising:
obtaining IPMI protocol description data to be processed, and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded;
obtaining IPMI protocol main body item data from the IPMI protocol data to be coded, and obtaining an IPMI protocol format in a UDP (user datagram protocol) public protocol;
carrying out adaptation conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain IPMI protocol data to be tested;
splitting the IPMI protocol to be tested to obtain request body data and response analysis rule data, and after data simulation is carried out on the request body data, acquiring protocol response data corresponding to the request body data;
and inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested is passed.
2. The IPMI protocol-based adaptive private protocol method of claim 1, wherein after the steps of obtaining IPMI protocol description data to be processed, normalizing the IPMI protocol description data to be processed, and obtaining IPMI protocol data to be encoded, the IPMI protocol-based adaptive private protocol method further comprises:
identifying the IPMI protocol description data to be processed through semantic analysis to obtain private protocol rule data;
and converting the private protocol rule data format into configuration file data.
3. The IPMI protocol-based adaptive private protocol method of claim 2, wherein said performing adaptation conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain IPMI protocol data to be tested specifically comprises:
acquiring a data type corresponding to the IPMI protocol main body item data from the configuration file data, and acquiring corresponding maximum byte length data according to the data type;
acquiring the byte length of the IPMI protocol main body item data, judging whether to carry out bit supplementing processing according to the byte length and the byte maximum length data, if so, supplementing the corresponding byte number, then carrying out adaptation conversion, and if not, directly carrying out the adaptation conversion.
4. The IPMI protocol-based adapted private protocol method of claim 1, wherein before said step of inputting said protocol response data into said response parsing rule data for parsing, said IPMI protocol-based adapted private protocol method further comprises:
acquiring conversion content data from the adaptation conversion corresponding to the IPMI protocol main body data;
and generating reverse conversion content data corresponding to each conversion content data one by one, and generating the response analysis rule data corresponding to the adaptive conversion according to the reverse conversion content.
5. The IPMI protocol-based adaptive private protocol method of claim 4, wherein the inputting the protocol response data into the response parsing rule data for parsing to obtain the data structure to be tested specifically comprises:
intercepting IPMI response body data from the protocol response data according to bits;
and analyzing the IPMI response main body data step by step according to the reverse conversion content data in the response analysis rule data to obtain the to-be-tested data structure.
6. An IPMI compliant private protocol device, comprising:
the protocol description module is used for acquiring IPMI protocol description data to be processed and carrying out normalization processing on the IPMI protocol description data to be processed to obtain IPMI protocol data to be coded;
the protocol format acquisition module is used for acquiring IPMI protocol main body item data from the IPMI protocol data to be coded and acquiring an IPMI protocol format in a UDP (user datagram protocol) public protocol;
the protocol coding module is used for carrying out adaptive conversion on the IPMI protocol main body item data according to the IPMI protocol format to obtain IPMI protocol data to be tested;
the protocol response module is used for splitting the IPMI protocol to be tested to obtain request body data and response analysis rule data, and acquiring protocol response data corresponding to the request body data after the request body data is subjected to data simulation;
and the protocol testing module is used for inputting the protocol response data into the response analysis rule data for analysis to obtain a data structure to be tested, and completing the adaptation of the IPMI protocol description data to be processed if the test on the data structure to be tested is passed.
7. The IPMI protocol based adapted private protocol apparatus of claim 6, wherein said IPMI protocol based adapted private protocol apparatus further comprises:
the semantic analysis module is used for identifying the IPMI protocol description data to be processed through semantic analysis to obtain private protocol rule data;
and the configuration file generation module is used for converting the proprietary protocol rule data format into configuration file data.
8. The IPMI protocol-based adapted private protocol apparatus of claim 7, wherein the protocol encoding module comprises:
the type obtaining submodule is used for obtaining a data type corresponding to the IPMI protocol main body item data from the configuration file data and obtaining corresponding maximum byte length data according to the data type;
and the adaptation conversion submodule is used for acquiring the byte length of the IPMI protocol main body item data, judging whether to perform bit supplement processing according to the byte length and the byte maximum length data, if so, performing adaptation conversion after supplementing the corresponding byte number, and if not, directly performing the adaptation conversion.
9. A computer device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, wherein said processor when executing said computer program performs the steps of the IPMI protocol based adapted private protocol method of any one of claims 1 to 5.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the IPMI protocol based adapted private protocol method according to any one of claims 1 to 5.
CN202210143556.0A 2022-02-17 2022-02-17 Method, device, equipment and medium for adapting private protocol based on IPMI protocol Active CN114205423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210143556.0A CN114205423B (en) 2022-02-17 2022-02-17 Method, device, equipment and medium for adapting private protocol based on IPMI protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210143556.0A CN114205423B (en) 2022-02-17 2022-02-17 Method, device, equipment and medium for adapting private protocol based on IPMI protocol

Publications (2)

Publication Number Publication Date
CN114205423A CN114205423A (en) 2022-03-18
CN114205423B true CN114205423B (en) 2022-05-10

Family

ID=80645496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210143556.0A Active CN114205423B (en) 2022-02-17 2022-02-17 Method, device, equipment and medium for adapting private protocol based on IPMI protocol

Country Status (1)

Country Link
CN (1) CN114205423B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117176830B (en) * 2023-11-03 2024-01-26 三未信安科技股份有限公司 Adaptive conversion method of extensible multi-format protocol password application data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207568A (en) * 2007-03-16 2008-06-25 中国科学技术大学 Multi protocol adapter and method for multi business to implement adapting treatment
CN107104975A (en) * 2017-05-22 2017-08-29 郑州云海信息技术有限公司 Data poolization layer, system and its implementation of a kind of support isomery based on MDC
CN110674066A (en) * 2019-09-09 2020-01-10 苏州浪潮智能科技有限公司 Universal board card information acquisition method and device
CN111447109A (en) * 2020-03-23 2020-07-24 京东方科技集团股份有限公司 Monitoring management apparatus and method, computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9916270B2 (en) * 2015-03-27 2018-03-13 Intel Corporation Virtual intelligent platform management interface (IPMI) satellite controller and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207568A (en) * 2007-03-16 2008-06-25 中国科学技术大学 Multi protocol adapter and method for multi business to implement adapting treatment
CN107104975A (en) * 2017-05-22 2017-08-29 郑州云海信息技术有限公司 Data poolization layer, system and its implementation of a kind of support isomery based on MDC
CN110674066A (en) * 2019-09-09 2020-01-10 苏州浪潮智能科技有限公司 Universal board card information acquisition method and device
CN111447109A (en) * 2020-03-23 2020-07-24 京东方科技集团股份有限公司 Monitoring management apparatus and method, computer readable storage medium

Also Published As

Publication number Publication date
CN114205423A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN109800258B (en) Data file deployment method, device, computer equipment and storage medium
CN114500690B (en) Interface data processing method and device, electronic equipment and storage medium
CN114205423B (en) Method, device, equipment and medium for adapting private protocol based on IPMI protocol
US20180357143A1 (en) Testing computing devices
CN106656998B (en) server communication method and device
CN111427940B (en) Self-adaptive database conversion method and device
CN109358869A (en) Configuration file amending method, device, computer equipment and storage medium
CN112822199B (en) OTA (over the air) upgrading method and system based on protocol conversion
CN111475324A (en) Log information analysis method and device, computer equipment and storage medium
CN113726762A (en) Internet of things equipment protocol analysis method based on configuration file
WO2021047184A1 (en) System failure analysis and processing method and apparatus, storage medium, and electronic device
CN109684207B (en) Method and device for packaging operation sequence, electronic equipment and storage medium
CN111245913A (en) Message sending method and device based on gateway, computer equipment and storage medium
CN115842861A (en) Edge connection device adaptation method, device and computer readable storage medium
CN115297104A (en) File uploading method and device, electronic equipment and storage medium
CN111539029B (en) Industrial internet-based big data storage rate optimization method and cloud computing center
CN111538651A (en) Interface testing method, device, server and storage medium
CN112486838A (en) Interface testing method and device, computer equipment and storage medium
CN114205276B (en) Performance test method and device for product management system and electronic equipment
CN113377672B (en) Test method, device and equipment
CN116911406B (en) Wind control model deployment method and device, computer equipment and storage medium
CN114531335B (en) Method, equipment and device for detecting management information base data
CN111614508B (en) Switch test result analysis method and system based on artificial intelligence
CN116820434A (en) Auxiliary development method for visualized quick generation of Java code

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