CN112468358A - Protocol detection method, system, equipment and computer readable storage medium - Google Patents

Protocol detection method, system, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112468358A
CN112468358A CN202011224497.7A CN202011224497A CN112468358A CN 112468358 A CN112468358 A CN 112468358A CN 202011224497 A CN202011224497 A CN 202011224497A CN 112468358 A CN112468358 A CN 112468358A
Authority
CN
China
Prior art keywords
protocol
detected
target
field
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011224497.7A
Other languages
Chinese (zh)
Other versions
CN112468358B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011224497.7A priority Critical patent/CN112468358B/en
Publication of CN112468358A publication Critical patent/CN112468358A/en
Application granted granted Critical
Publication of CN112468358B publication Critical patent/CN112468358B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The application discloses a protocol detection method, a system, equipment and a computer readable storage medium, which are used for acquiring a protocol to be detected; identifying each target protocol field in the protocol to be detected; judging whether the target protocol fields are continuous or not; if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems; and if the target protocol fields are continuous, generating prompt information representing that the protocol to be detected has no problem. According to the method and the device, each target protocol field in the protocol to be detected can be identified, whether the protocol to be detected has problems or not is determined based on whether the target protocol field is continuous or not, the function of detecting the protocol is achieved, and the problems of the protocol can be found in time. The application provides a protocol detection system, a device and a computer readable storage medium, which also solve the corresponding technical problems.

Description

Protocol detection method, system, equipment and computer readable storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a protocol detection method, system, device, and computer-readable storage medium.
Background
At present, a data communication protocol standard between general networks tends to be perfect, but for different application scenarios, customized development of an existing data transmission protocol is often required, for example, the RoCEv2 standard changes an application layer protocol, keeps a transmission layer, a network layer, and a link layer protocol unchanged, and realizes RDMA (Remote Direct Memory Access) data transmission on an existing IT facility, so that existing ethernet communication can be greatly improved.
However, in the process of customizing and developing the protocol, the user cannot detect the protocol, cannot know information such as whether the protocol is safe, reliable or efficient, and cannot determine the application property of the protocol.
In summary, how to implement the detection of the protocol is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a protocol detection method which can solve the technical problem of how to realize the detection of a protocol to a certain extent. The application also provides a protocol detection system, a device and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a protocol detection method, comprising:
acquiring a protocol to be detected;
identifying each target protocol field in the protocol to be detected;
judging whether the target protocol fields are continuous or not;
if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems;
and if the target protocol fields are continuous, generating prompt information for representing that the protocol to be detected has no problem.
Preferably, the determining whether the target protocol field is continuous includes:
judging whether the sequence of the target protocol field is consistent with the sequence of a preset protocol field;
if the sequence of the target protocol field is consistent with the sequence of the preset protocol field, judging that the target protocol field is continuous;
and if the sequence of the target protocol field is inconsistent with the sequence of the preset protocol field, the target protocol field is judged to be discontinuous.
Preferably, before the determining whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field, the method further includes:
judging whether all adjacent target protocol fields are related or not;
and if all the adjacent target protocol fields are related, executing the step of judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields.
Preferably, the determining whether the target protocol field is continuous includes:
taking the target protocol field as a state value, and generating a protocol state diagram of the target protocol field based on a state diagram abstract method;
and judging whether the target protocol fields are continuous or not based on the protocol state diagram.
Preferably, after the generating of the prompt information indicating that the protocol to be detected has no problem, the method further includes:
testing the protocol to be detected to obtain a test result;
and determining the performance information of the protocol to be detected based on the test result.
Preferably, the step of testing the protocol to be tested to obtain a test result includes:
and testing the running performance of the protocol to be tested in a kernel state and/or an application state and/or a hardware acceleration state to obtain the test result.
Preferably, the determining the performance information of the protocol to be detected based on the test result includes:
and analyzing the test result based on a linear regression model to obtain the performance information of the protocol to be detected.
A protocol detection system, comprising:
the first acquisition module is used for acquiring the protocol to be detected;
the first identification module is used for identifying each target protocol field in the protocol to be detected;
the first judging module is used for judging whether the target protocol fields are continuous or not; if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems; and if the target protocol fields are continuous, generating prompt information for representing that the protocol to be detected has no problem.
A protocol detection device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the protocol detection method as described in any one of the above when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the protocol detection method as set forth in any one of the preceding claims.
The application provides a protocol detection method, which comprises the steps of obtaining a protocol to be detected; identifying each target protocol field in the protocol to be detected; judging whether the target protocol fields are continuous or not; if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems; and if the target protocol fields are continuous, generating prompt information representing that the protocol to be detected has no problem. According to the method and the device, each target protocol field in the protocol to be detected can be identified, whether the protocol to be detected has problems or not is determined based on whether the target protocol field is continuous or not, the function of detecting the protocol is achieved, and the problems of the protocol can be found in time. The application provides a protocol detection system, a device and a computer readable storage medium, which also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a protocol detection method according to an embodiment of the present application;
FIG. 2 is a 7-way handshake flow diagram of the TCP/IP protocol;
FIG. 3 is a protocol state diagram corresponding to a 7-way handshake of the TCP/IP protocol;
fig. 4 is a schematic structural diagram of a protocol detection system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a protocol detection device according to an embodiment of the present application;
fig. 6 is another schematic structural diagram of a protocol detection device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a protocol detection method according to an embodiment of the present disclosure.
The protocol detection method provided by the embodiment of the application can comprise the following steps:
step S101: and acquiring the protocol to be detected.
In practical application, a protocol to be detected can be obtained first, and the type of the protocol to be detected can be determined according to actual needs, for example, the protocol to be detected can be a data transmission protocol, a data privacy protocol, and the like; in a specific application scenario, the acquired protocol to be detected may be a protocol code, a protocol text, and the like written by a user, which is not specifically limited herein.
Step S102: identifying each target protocol field in the protocol to be detected.
In practical application, because each protocol has fields for representing the corresponding characteristics of the protocol, such as keywords, the protocol can be detected by using the fields, that is, after the protocol to be detected is obtained, each target protocol field in the protocol to be detected can be identified, the type of the target protocol field can be determined according to actual needs, for example, the target protocol field can be a keyword field, a functional node field, and the like.
Step S103: judging whether the target protocol fields are continuous or not; if the target protocol field is not continuous, executing step S104; if the target protocol field is continuous, step S105 is executed.
Step S104: and generating prompt information for representing that the protocol to be detected has problems.
Step S105: and generating prompt information for representing that the protocol to be detected has no problem.
In practical application, after each target protocol field in the protocol to be detected is identified, as one protocol has no problem, the logic of the protocol is connected, and if the protocol field is represented, the protocol field is continuous, so that whether the target protocol field is continuous or not can be judged, and if the target protocol field is discontinuous, prompt information for representing that the protocol to be detected has the problem can be generated; if the target protocol fields are continuous, prompt information representing that the protocol to be detected has no problem can be generated.
In a specific application scenario, after it is determined that the target protocol field is discontinuous, after prompt information representing that the protocol to be detected has a problem is generated, the problem of the protocol to be detected can be analyzed, confirmed and the like according to the discontinuous protocol field between the target protocol field, and further, a corresponding solution can be provided according to the problem of the protocol to be detected, and the like, which is not specifically limited herein.
The application provides a protocol detection method, which comprises the steps of obtaining a protocol to be detected; identifying each target protocol field in the protocol to be detected; judging whether the target protocol fields are continuous or not; if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems; and if the target protocol fields are continuous, generating prompt information representing that the protocol to be detected has no problem. According to the method and the device, each target protocol field in the protocol to be detected can be identified, whether the protocol to be detected has problems or not is determined based on whether the target protocol field is continuous or not, the function of detecting the protocol is achieved, and the problems of the protocol can be found in time.
In the protocol detection method provided by the embodiment of the application, in the process of judging whether the target protocol fields are continuous or not, whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields or not can be judged; if the sequence of the target protocol field is consistent with the sequence of the preset protocol field, judging that the target protocol field is continuous; and if the sequence of the target protocol field is inconsistent with the sequence of the preset protocol field, the target protocol field is judged to be discontinuous.
In practical application, according to the operation logic of the protocol, the sequence of the target protocol field has a certain rule, and the applied protocol field can be determined in advance when the protocol is written, that is, the preset protocol field can be determined in advance, so that whether the target protocol fields are continuous or not can be judged by judging whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field or not. In this process, when determining whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field, it may be determined first whether the type of the target protocol field is consistent with the type of the preset protocol field, and if so, it may be determined then whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field, that is, when the sequence of the target protocol field is consistent with the sequence of the preset protocol field, it is necessary to first ensure that the type of the target protocol field is consistent with the type of the preset protocol field, and then ensure that the sequence of the target protocol field is consistent with the sequence of the preset protocol field. In other words, if there is a missing protocol field in the target protocol field compared to the preset protocol field, the display order of the target protocol field is not necessarily consistent with the sequence order of the preset protocol field.
In the protocol detection method provided by the embodiment of the application, before judging whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field, whether all adjacent target protocol fields are related or not can be judged; and if all the adjacent target protocol fields are related, executing a step of judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields.
In practical application, even if the sequence of the target protocol field is consistent with the sequence of the preset protocol field, the situation that the adjacent protocol fields are not connected can exist, at the moment, because the adjacent protocol fields are not connected, the function of the protocol to be detected can generate faults and is not continuous, so that the protocol to be detected has problems, in order to avoid the situation, the accuracy of protocol detection is ensured, and whether all the adjacent target protocol fields are connected or not can be judged firstly; if all adjacent target protocol fields are related, then executing a step of judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields; if no correlation exists between adjacent target protocol fields, the problem of the protocol to be detected can be determined. For convenience of understanding, taking the 7-way handshake process of TCP/IP (Transmission Control Protocol/Internet Protocol) Protocol as shown in fig. 2 as an example, when there is no connection between the ESTABLISHEd and SYN _ RCVD, although the ESTABLISHEd and SYN _ RCVD are both target Protocol fields, since there is no connection between them, the function of the ESTABLISHEd and SYN _ RCVD is not connected, and thus the 7-way handshake process of TCP/IP Protocol is problematic.
In the protocol detection method provided by the embodiment of the application, in the process of judging whether target protocol fields are continuous, in order to conveniently judge whether the target protocol fields are continuous, the target protocol fields can be used as state values, and a protocol state diagram of the target protocol fields is generated based on a state diagram abstraction method; and judging whether the target protocol fields are continuous or not based on the protocol state diagram.
For convenience of understanding, still taking the 7-way handshake process of the TCP/IP protocol shown in fig. 2 as an example, if each target protocol field is used as a state value, the protocol state diagram corresponding to fig. 2 may be as shown in fig. 3, in this process, because the protocol field in the protocol is repeatedly used many times, the protocol state diagram shown in fig. 3 is a ring, in practical application, if the generated data of the last step in the protocol is used as input data when the next protocol is triggered, the protocol state diagram may also be set to be a ring, and fig. 3 may know that it is only necessary to check whether there is an independent branch in the protocol state diagram, and whether the target protocol fields are consecutive or not may be determined quickly.
In the protocol detection method provided by the embodiment of the application, after the prompt information for representing that the protocol to be detected has no problem is generated, because the protocol is written based on functions and the running modes of the protocol are possibly various, the performance of the protocol is not unique, and the protocol to be detected can be tested to obtain a test result in order to determine the performance of the protocol; and determining the performance information of the protocol to be detected based on the test result so as to determine the action mode of the protocol and the like according to the performance information of the protocol. The type of the performance information of the protocol may be determined according to actual needs, for example, the performance information may include operation efficiency, consumed resource amount, and the like.
In practical application, in the process of testing the protocol to be detected to obtain the test result, in order to facilitate the test of the protocol to be detected, the operation performance of the protocol to be detected can be tested in a kernel state and/or an application state and/or a hardware acceleration state to obtain the test result. For example, the operation performance of the protocol to be detected may be tested only in the kernel state, the operation performance of the protocol to be detected may be tested only in the hardware acceleration state, and the operation performance of the protocol to be detected may be tested in the cooperation of the kernel state and the hardware acceleration state.
In practical application, in the process of determining the performance information of the protocol to be detected based on the test result, in order to facilitate determining the performance information of the protocol to be detected, the test result may be analyzed based on a linear regression model to obtain the performance information of the protocol to be detected. In the process, the action coefficient of the protocol to be detected can be determined according to the test mode, and then the performance information and the like of the protocol to be detected in each test mode are determined according to the linear regression model, the action coefficient and the test result, at the moment, the performance information is determined according to the same rule, and the action mode and the like of the protocol to be detected can be determined by comparing each piece of performance information conveniently.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a protocol detection system according to an embodiment of the present disclosure.
The protocol detection system provided by the embodiment of the application can include:
a first obtaining module 101, configured to obtain a protocol to be detected;
the first identification module 102 is configured to identify each target protocol field in the protocol to be detected;
a first judging module 103, configured to judge whether the target protocol fields are consecutive; if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems; and if the target protocol fields are continuous, generating prompt information representing that the protocol to be detected has no problem.
In an embodiment of the present application, a protocol detection system, a first determining module may include:
the first judging unit is used for judging whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field; if the sequence of the target protocol field is consistent with the sequence of the preset protocol field, judging that the target protocol field is continuous; and if the sequence of the target protocol field is inconsistent with the sequence of the preset protocol field, the target protocol field is judged to be discontinuous.
The protocol detection system provided in the embodiment of the present application may further include:
the second judgment module is used for judging whether all adjacent target protocol fields are related before the first judgment module judges whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields; and if all the adjacent target protocol fields are related, prompting the first judging module to execute a step of judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields.
In an embodiment of the present application, a protocol detection system, a first determining module may include:
the first generation unit is used for generating a protocol state diagram of the target protocol field based on a state diagram abstract method by taking the target protocol field as a state value;
and the second judging unit is used for judging whether the target protocol fields are continuous or not based on the protocol state diagram.
The protocol detection system provided in the embodiment of the present application may further include:
the first testing module is used for testing the protocol to be detected after the first judging module generates prompt information for representing that the protocol to be detected has no problem, so as to obtain a testing result;
and the first determining module is used for determining the performance information of the protocol to be detected based on the test result.
In an embodiment of the present application, a protocol detection system, a first test module may include:
the first testing unit is used for testing the running performance of the protocol to be detected in a kernel state and/or an application state and/or a hardware acceleration state to obtain a testing result.
In an embodiment of the present application, a protocol detection system, a first determining module may include:
and the first analysis unit is used for analyzing the test result based on the linear regression model to obtain the performance information of the protocol to be detected.
The application also provides a protocol detection device and a computer readable storage medium, which have the corresponding effects of the protocol detection method provided by the embodiment of the application. Referring to fig. 5, fig. 5 is a schematic structural diagram of a protocol detection device according to an embodiment of the present disclosure.
The protocol detection device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program:
acquiring a protocol to be detected;
identifying each target protocol field in the protocol to be detected;
judging whether the target protocol fields are continuous or not;
if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems;
and if the target protocol fields are continuous, generating prompt information representing that the protocol to be detected has no problem.
The protocol detection device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: judging whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field; if the sequence of the target protocol field is consistent with the sequence of the preset protocol field, judging that the target protocol field is continuous; and if the sequence of the target protocol field is inconsistent with the sequence of the preset protocol field, the target protocol field is judged to be discontinuous.
The protocol detection device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: before judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields, judging whether all adjacent target protocol fields are related; and if all the adjacent target protocol fields are related, executing a step of judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields.
The protocol detection device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: taking the target protocol field as a state value, and generating a protocol state diagram of the target protocol field based on a state diagram abstract method; and judging whether the target protocol fields are continuous or not based on the protocol state diagram.
The protocol detection device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: after prompt information representing that the protocol to be detected has no problem is generated, testing the protocol to be detected to obtain a test result; and determining the performance information of the protocol to be detected based on the test result.
The protocol detection device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and testing the running performance of the protocol to be detected in a kernel state and/or an application state and/or a hardware acceleration state to obtain a test result.
The protocol detection device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and analyzing the test result based on the linear regression model to obtain the performance information of the protocol to be detected.
Referring to fig. 6, another protocol detecting device provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing the communication between the protocol detection device and the outside world. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
acquiring a protocol to be detected;
identifying each target protocol field in the protocol to be detected;
judging whether the target protocol fields are continuous or not;
if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems;
and if the target protocol fields are continuous, generating prompt information representing that the protocol to be detected has no problem.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: judging whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field; if the sequence of the target protocol field is consistent with the sequence of the preset protocol field, judging that the target protocol field is continuous; and if the sequence of the target protocol field is inconsistent with the sequence of the preset protocol field, the target protocol field is judged to be discontinuous.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: before judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields, judging whether all adjacent target protocol fields are related; and if all the adjacent target protocol fields are related, executing a step of judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: taking the target protocol field as a state value, and generating a protocol state diagram of the target protocol field based on a state diagram abstract method; and judging whether the target protocol fields are continuous or not based on the protocol state diagram.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: after prompt information representing that the protocol to be detected has no problem is generated, testing the protocol to be detected to obtain a test result; and determining the performance information of the protocol to be detected based on the test result.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and testing the running performance of the protocol to be detected in a kernel state and/or an application state and/or a hardware acceleration state to obtain a test result.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and analyzing the test result based on the linear regression model to obtain the performance information of the protocol to be detected.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in the protocol detection system, the device, and the computer-readable storage medium provided in the embodiments of the present application, reference is made to detailed descriptions of a corresponding part in the protocol detection method provided in the embodiments of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A protocol detection method, comprising:
acquiring a protocol to be detected;
identifying each target protocol field in the protocol to be detected;
judging whether the target protocol fields are continuous or not;
if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems;
and if the target protocol fields are continuous, generating prompt information for representing that the protocol to be detected has no problem.
2. The method of claim 1, wherein the determining whether the target protocol field is consecutive comprises:
judging whether the sequence of the target protocol field is consistent with the sequence of a preset protocol field;
if the sequence of the target protocol field is consistent with the sequence of the preset protocol field, judging that the target protocol field is continuous;
and if the sequence of the target protocol field is inconsistent with the sequence of the preset protocol field, the target protocol field is judged to be discontinuous.
3. The method according to claim 2, wherein before the determining whether the sequence of the target protocol field is consistent with the sequence of the preset protocol field, the method further comprises:
judging whether all adjacent target protocol fields are related or not;
and if all the adjacent target protocol fields are related, executing the step of judging whether the sequence of the target protocol fields is consistent with the sequence of the preset protocol fields.
4. The method of claim 1, wherein the determining whether the target protocol field is consecutive comprises:
taking the target protocol field as a state value, and generating a protocol state diagram of the target protocol field based on a state diagram abstract method;
and judging whether the target protocol fields are continuous or not based on the protocol state diagram.
5. The method according to any one of claims 1 to 4, wherein after generating the prompt message indicating that the protocol to be detected has no problem, the method further comprises:
testing the protocol to be detected to obtain a test result;
and determining the performance information of the protocol to be detected based on the test result.
6. The method according to claim 5, wherein the testing the protocol to be tested to obtain the test result comprises:
and testing the running performance of the protocol to be tested in a kernel state and/or an application state and/or a hardware acceleration state to obtain the test result.
7. The method according to claim 6, wherein the determining the performance information of the protocol to be detected based on the test result comprises:
and analyzing the test result based on a linear regression model to obtain the performance information of the protocol to be detected.
8. A protocol detection system, comprising:
the first acquisition module is used for acquiring the protocol to be detected;
the first identification module is used for identifying each target protocol field in the protocol to be detected;
the first judging module is used for judging whether the target protocol fields are continuous or not; if the target protocol field is discontinuous, generating prompt information for representing that the protocol to be detected has problems; and if the target protocol fields are continuous, generating prompt information for representing that the protocol to be detected has no problem.
9. A protocol sensing device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the protocol detection method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the protocol detection method according to any one of claims 1 to 7.
CN202011224497.7A 2020-11-05 2020-11-05 Protocol detection method, system, equipment and computer readable storage medium Active CN112468358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011224497.7A CN112468358B (en) 2020-11-05 2020-11-05 Protocol detection method, system, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011224497.7A CN112468358B (en) 2020-11-05 2020-11-05 Protocol detection method, system, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112468358A true CN112468358A (en) 2021-03-09
CN112468358B CN112468358B (en) 2022-07-22

Family

ID=74825122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011224497.7A Active CN112468358B (en) 2020-11-05 2020-11-05 Protocol detection method, system, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112468358B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683558A (en) * 2018-05-10 2018-10-19 中国铁路总公司 Railway security Communication Protocol Conformance Testing Methodology
CN108900554A (en) * 2018-08-22 2018-11-27 杭州安恒信息技术股份有限公司 Http protocol asset detecting method, system, equipment and computer media
CN111711636A (en) * 2020-06-28 2020-09-25 杭州安恒信息技术股份有限公司 Method, system, equipment and readable storage medium for host survival detection
CN111737140A (en) * 2020-06-28 2020-10-02 深圳前海微众银行股份有限公司 Interface automation test method, device, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683558A (en) * 2018-05-10 2018-10-19 中国铁路总公司 Railway security Communication Protocol Conformance Testing Methodology
CN108900554A (en) * 2018-08-22 2018-11-27 杭州安恒信息技术股份有限公司 Http protocol asset detecting method, system, equipment and computer media
CN111711636A (en) * 2020-06-28 2020-09-25 杭州安恒信息技术股份有限公司 Method, system, equipment and readable storage medium for host survival detection
CN111737140A (en) * 2020-06-28 2020-10-02 深圳前海微众银行股份有限公司 Interface automation test method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112468358B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN107844421B (en) Interface testing method and device, computer equipment and storage medium
CN107766190B (en) Interface testing method and device, computer equipment and storage medium
CN107562610B (en) Method, device, terminal and medium for acquiring page loading time
US10642985B2 (en) Method and device for vulnerability scanning
US7469362B2 (en) Using a call stack hash to record the state of a process
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
CN107729227B (en) Application program test range determining method, system, server and storage medium
JP6932494B2 (en) Systems and methods for applying aggregated cable test results data, as well as cloud-based computer servers
CN106484611B (en) Fuzzy test method and device based on automatic protocol adaptation
CN112241360B (en) Test case generation method, device, equipment and storage medium
US20160255093A1 (en) Methods, apparatuses and computer program products for automated learning of data models
WO2018103402A1 (en) Wireless fidelity (wifi) scan method and related product
CN113114680B (en) Detection method and detection device for file uploading vulnerability
CN109302423B (en) Vulnerability scanning capability testing method and device
CN112261635A (en) Bluetooth test method, device, electronic equipment and computer readable storage medium
CN110806965A (en) Automatic test method, device, equipment and medium
CN110750790B (en) CAN bus vulnerability detection method and device, terminal equipment and medium
CN105022694A (en) Test case generation method and system for mobile terminal test
CN111198797B (en) Operation monitoring method and device and operation analysis method and device
CN114024884A (en) Test method, test device, electronic equipment and storage medium
CN111736951A (en) Simulation method for automatic driving, computer device, and storage medium
CN106708705B (en) Terminal background process monitoring method and system
CN112468358B (en) Protocol detection method, system, equipment and computer readable storage medium
CN112882948A (en) Stability testing method, device and system for application and storage medium
CN112583617A (en) Fault determination method, server, control terminal and storage medium

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