CN117376187A - Communication protocol detection method and detection system - Google Patents

Communication protocol detection method and detection system Download PDF

Info

Publication number
CN117376187A
CN117376187A CN202311331946.1A CN202311331946A CN117376187A CN 117376187 A CN117376187 A CN 117376187A CN 202311331946 A CN202311331946 A CN 202311331946A CN 117376187 A CN117376187 A CN 117376187A
Authority
CN
China
Prior art keywords
test
tested
target
detection
protocol
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.)
Pending
Application number
CN202311331946.1A
Other languages
Chinese (zh)
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.)
East China Branch Of State Grid Corp ltd
Original Assignee
East China Branch Of State Grid Corp 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 East China Branch Of State Grid Corp ltd filed Critical East China Branch Of State Grid Corp ltd
Priority to CN202311331946.1A priority Critical patent/CN117376187A/en
Publication of CN117376187A publication Critical patent/CN117376187A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Landscapes

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

Abstract

The application discloses a communication protocol detection method and a detection system, relates to the technical field of information and communication, and can solve the problems of excessive intervention of a human tissue and high implementation difficulty in the current test. The method comprises the following steps: initializing CMS communication protocol automatic detection software in response to a detection instruction initiated by a detection management main system; at least one device to be tested indicated by the statistic detection instruction and a test item corresponding to each device to be tested, determining a test item to be executed corresponding to each device to be tested in all the test items, and carrying out initial configuration; extracting a first target to-be-tested device in a test queue, acquiring a to-be-tested item and a to-be-tested protocol associated with the target to-be-tested device, reading the measurement information of the to-be-tested item, and entering a measurement execution step corresponding to the measurement information; and testing the protocol to be tested of the target equipment to be tested according to the test example executing step.

Description

Communication protocol detection method and detection system
Technical Field
The present disclosure relates to the field of information and communication technologies, and in particular, to a method and a system for detecting a communication protocol.
Background
The construction of the intelligent substation has important significance for the development of the power system, and can improve the operation efficiency and the safety of the power system and reduce the energy consumption and the environmental pollution. And the MMS protocol is used as a communication protocol of the intelligent substation, so that reliable communication support can be provided for the construction of the intelligent substation, and the development and the application of the intelligent substation are promoted. The MMS protocol is a protocol based on the ISO/OSI model, which allows communication between different network layers, thus enabling the transmission and exchange of data.
However, the MMS protocol is complex, has redundancy in its own architecture, has low communication efficiency, has redundancy in the encoded byte stream, has a large number of bytes, and has low encoding efficiency. In addition, the MMS protocol does not belong to the national standard, which is not beneficial to the autonomous technical safety of the national network. Thus, to solve these problems, the national network has established a homemade CMS communication protocol for replacing the MMS protocol based on the DL/T860 standard. In order to ensure the correctness, reliability and safety of the CMS protocol, meet the standards and compliance requirements, and promote standardization and development of the protocol, a detection method and a detection system for the CMS communication protocol are needed.
Disclosure of Invention
In view of this, the application provides a method and a system for detecting a communication protocol, which mainly aims to solve the problems of excessive intervention of a human tissue and high implementation difficulty in the current test.
According to a first aspect of the present application, there is provided a method for detecting a communication protocol, the method comprising:
initializing the CMS communication protocol auto-test software in response to detecting a test instruction initiated by a management host system, the initialization including, but not limited to, initialization parameters, initialization process data, and initialization button states;
counting at least one device to be tested indicated by the detection instruction and a test item corresponding to each device to be tested, determining a test item to be executed corresponding to each device to be tested in all the test items, performing initial configuration, associating the test item to be executed with the corresponding device to be tested, and adding the associated device to be tested to a test queue, wherein the initial configuration content is model information of the device to be tested;
extracting first target equipment to be tested in the test queue, acquiring a to-be-executed test item and a to-be-tested protocol associated with the target equipment to be tested, reading the test case information of the to-be-executed test item, and entering a test case executing step corresponding to the test case information;
and testing the protocol to be tested of the target equipment to be tested according to the test example executing step.
According to a second aspect of the present application, there is provided a communication protocol detection system, the system comprising: the data interaction subsystem and the substation DL/T860 protocol mapping substitute communication protocol automatic test subsystem;
the interaction subsystem is composed of a detection management main system and CMS communication protocol automatic detection software and is used for realizing data interaction between the DL/T860 protocol mapping substitution communication protocol automatic test subsystem of the transformer substation and the detection management main system;
the automatic testing subsystem of the substation DL/T860 protocol mapping alternative communication protocol consists of CMS communication protocol automatic detection software and testing equipment, and is used for respectively simulating the communication between a server side, a client side and tested equipment to realize parallel testing, wherein the testing equipment comprises a switch, the tested equipment, a network tester and a relay protection tester.
By means of the technical scheme, the communication protocol detection method, the communication protocol detection system method and the communication protocol detection device initialize CMS communication protocol automatic detection software in response to detection instructions initiated by a detection management main system. And then, counting at least one device to be tested indicated by the detection instruction and a test item corresponding to each device to be tested, determining a test item to be executed corresponding to each device to be tested in all the test items, carrying out initial configuration, associating the test item to be executed with the corresponding device to be tested, adding the associated device to be tested to a test queue, and taking the initial configuration as model information of the device to be tested. Further, the first target equipment to be tested is ranked in the test queue, a to-be-tested item and a to-be-tested protocol associated with the target equipment to be tested are obtained, the test case information of the to-be-tested item is read, and a test case executing step corresponding to the test case information is entered. And finally, testing the protocol to be tested of the target equipment to be tested according to the test case execution step. The method constructs a test method of a domestic communication protocol CMS protocol, realizes a framework and a software flow, provides a guiding thought for subsequent tool development, and solves the technical problems of excessive artificial tissue intervention and high realization difficulty in the current test.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a schematic flow chart of a communication protocol detection method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a communication protocol detection method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a system architecture of a communication protocol detection system according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The construction of the intelligent substation has important significance for the development of the power system, and can improve the operation efficiency and the safety of the power system and reduce the energy consumption and the environmental pollution. And the MMS protocol is used as a communication protocol of the intelligent substation, so that reliable communication support can be provided for the construction of the intelligent substation, and the development and the application of the intelligent substation are promoted. The MMS protocol is a protocol based on the ISO/OSI model, which allows communication between different network layers, thus enabling the transmission and exchange of data. However, the MMS protocol is complex, has redundancy in its own architecture, has low communication efficiency, has redundancy in the encoded byte stream, has a large number of bytes, and has low encoding efficiency. In addition, the MMS protocol does not belong to the national standard, which is not beneficial to the autonomous technical safety of the national network. Thus, to solve these problems, the national network has established a homemade CMS communication protocol for replacing the MMS protocol based on the DL/T860 standard. In order to ensure the correctness, reliability and safety of the CMS protocol, meet the standards and compliance requirements, and promote standardization and development of the protocol, a detection method and a detection system for the CMS communication protocol are needed. Therefore, the application provides a communication protocol detection method and a detection system, and the CMS communication protocol automatic detection software is initialized in response to a detection instruction initiated by a detection management main system. And then, counting at least one device to be tested indicated by the detection instruction and a test item corresponding to each device to be tested, determining a test item to be executed corresponding to each device to be tested in all the test items, carrying out initial configuration, associating the test item to be executed with the corresponding device to be tested, adding the associated device to be tested to a test queue, and taking the initial configuration as model information of the device to be tested. Further, the first target equipment to be tested is ranked in the test queue, a to-be-tested item and a to-be-tested protocol associated with the target equipment to be tested are obtained, the test case information of the to-be-tested item is read, and a test case executing step corresponding to the test case information is entered. And finally, testing the protocol to be tested of the target equipment to be tested according to the test case execution step. The method constructs a test method of a domestic communication protocol CMS protocol, realizes a framework and a software flow, provides a guiding thought for subsequent tool development, and solves the technical problems of excessive artificial tissue intervention and high realization difficulty in the current test.
An embodiment of the present application provides a method for detecting a communication protocol, as shown in fig. 1, where the method includes:
101. in response to detecting the detection instruction initiated by the management host system, the CMS communication protocol auto-detection software is initialized, including but not limited to initialization parameters, initialization process data, and initialization button states.
The CMS communication protocol automatic test software is substation DL/T860 protocol mapping substitute communication protocol automatic test software, the software designs four functional modules, namely a detection management main system data interaction module, a test case configuration module, a communication message analysis module and a test record storage module, and achieves the functions of message analysis record, test record storage, test record uploading and the like in the test process.
The detection flow provided in the embodiment of the present application is shown in fig. 2, where a user clicks a start button on a management terminal provided by a detection management host system to start CMS communication protocol automatic detection software for testing. The CMS communication protocol automatic detection software responds to the detection instruction initiated by the detection management main system, receives the detection task sent by the detection management main system, and initializes the CMS communication protocol automatic detection software after the detection task is checked and generated. It should be noted that the initialization includes, but is not limited to, initializing parameters, initializing process data, and initializing button states.
102. At least one to-be-tested device indicated by the statistic detection instruction and a test item corresponding to each to-be-tested device are counted, the to-be-tested item corresponding to each to-be-tested device is determined in all the test items, initial configuration is carried out, the to-be-tested item and the corresponding to-be-tested device are associated, the associated to-be-tested device is added to a test queue, and the initial configuration content is model information of the to-be-tested device.
In this step, at least one device to be tested indicated by the detection instruction and the test items corresponding to each device to be tested are counted first, whether a first specified test item to be manually matched with the test exists in all the test items is judged, if the first specified test item exists, a test item screening prompt is sent to the detection management main system, so that a user selects the test item to be executed through the detection management main system based on the test item screening prompt. And if the first designated test item is determined to be absent, taking all the test items as test items to be executed.
And then judging whether a second designated test item which is manually matched with the initial configuration exists in the test items to be executed, and carrying out the initial configuration according to a judging result. It should be noted that, the content of the initial configuration is model information of the device to be tested. If the second designated test item is determined to exist, a configuration operation prompt is sent to the detection management main system, so that the user modifies the initial configuration parameters through the detection management main system based on the configuration operation prompt, and the CMS communication protocol automatic detection software re-reads the initial configuration parameters to perform initial configuration. If it is determined that the second designated test item does not exist, initial configuration is performed according to the preset declaration file.
103. And extracting the first target equipment to be tested in the test queue, acquiring a test item to be executed and a protocol to be tested associated with the target equipment to be tested, reading the test case information of the test item to be executed, and entering a test case execution step corresponding to the test case information.
104. And testing the protocol to be tested of the target equipment to be tested according to the test example executing step.
In this step, when the test item to be executed is a server consistency test, the CMS communication protocol automatic detection software simulates that a network connection is established between the client and the target device to be tested. The CMS communication protocol automatic detection software reads the measurement information, and tests the protocol to be tested of the target device to be tested according to the measurement execution steps.
Specifically, if the test case information indicates that the document and the version, the configuration file and the data model are detected, a detection case, a technical requirement and a method specified by the target specification document are obtained, the document marking and archiving record is checked according to the detection case, the technical requirement and the method, the modification record and the updating record of each version are checked, the configuration file identification is checked, and the data use condition in the data model is checked, so that a test result is obtained. The target specification document may be DL/T860.10, among others.
If the test case information indicates that the data frame format detection is performed, the data frame format meets the requirement of a target specification document of an autonomous controllable new generation substation secondary system technical specification general class series specification 4 DL/T860 communication message 6, then the target communication service request indicated by the target specification document is read, the target communication service request is sent to the target equipment to be tested, whether the message data frame format responded by the target equipment to be tested is correct is checked, whether the target equipment to be tested can correctly frame and return the response according to the negotiation parameters APDUSize, ASDUSize, and/or a data packet with a coding error is sent to the target equipment to be tested, whether the target equipment to be tested is abnormal is checked, and a test result is obtained.
If the measurement information indicates that the application association detection is performed, and the requirements of the target specification documents of general class series specification 4 DL/T860 communication messages 8.2 and 8.15 and the target specification documents of DL/T860.10-2018.2.4.7 are met, the target communication service indicated by the target specification document is read, wherein the target communication service comprises association negotiation (association), association (Release), abort (Test). The method comprises the steps that communication services such as negotiation, association, release, abnormal suspension and the like are respectively carried out on a simulation client of CMS communication protocol and target equipment to be tested, whether the target equipment to be tested can respond correctly is checked, a test result is obtained, and/or repeated negotiation is carried out on the simulation client of CMS communication protocol and the target equipment to be tested, whether the target equipment to be tested can respond correctly is checked, a release request is sent to the target equipment to be tested by the simulation client of CMS communication protocol automatic detection software, TCP connection is not closed within a timeout time after the response of the target equipment to be tested is received, whether a timeout processing mechanism after the release association of the target equipment to be tested is correct is checked, the test result is obtained, and/or the request with error parameters is sent to the target equipment to be tested, such as negotiation, association, release, abnormal suspension and the like by the simulation client of CMS communication protocol automatic detection software, whether the target equipment to be tested can respond correctly is checked, and the test result is obtained.
If the test case information indicates that the security authentication detection is performed, the security authentication meets the requirement of annex B of the target specification document, namely the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation, then checking whether the transport layer security communication supports the TLS (1.2) protocol, checking whether the key certificate is correct, checking whether the national encryption algorithm is supported, checking whether the application layer security communication supports the security authentication parameter setting and verification, and obtaining a test result. Specifically, the ECDHE_Sm4_Sm3 or ECC_Sm4_Sm3 suite is adopted based on the TLS protocol, CMS communication protocol automatic detection software is used for simulating that a client carries a correct national secret certificate to carry out negotiation and association with a target device to be tested, whether the target device to be tested can respond correctly is checked to obtain a test result, and/or CMS communication protocol automatic detection software is used for simulating that the client establishes correct association with the target device to be tested, whether the target device to be tested has a renegotiation mechanism according to configuration is checked to obtain the test result, and/or CMS communication protocol automatic detection software is used for simulating that the client carries an error certificate to carry out negotiation and association with the target device to be tested, whether the target device to be tested can respond correctly is checked, and an error code is returned to obtain the test result.
If the test case information indicates that the server/logic device/logic node/data detection should be performed, the requirements of the target specification document of the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation, 8.3 and 8.4 and the target specification document of DL/T860.10-2018.2.4.8 are met, the target communication service indicated by the target specification document is read, the target communication service is tested, the test result is obtained, wherein, the target communication service includes a read server directory communication service (GetServerDirectory), a read logical device directory communication service (GetLogicalDeviceDirectory), a read logical node directory (getlogicalnodirectory), a read all data value (GetAllDataValues), a read all data definition (GetAllDataDefinition), a read all control block value (getallncbvalues), a read data value (GetDataValues), a set data value (SetDataValues), a read data directory communication service (GetDataDirectory), and a read data definition communication service (GetDataDefinition). Specifically, the CMS communication protocol is used to automatically detect whether the software simulation client terminal sends correct server/logic device/logic node/data communication service requests to the target device to be tested, and check whether the target device to be tested can respond correctly. And using the CMS communication protocol to automatically detect whether the software simulation client side respectively sends server/logic equipment/logic node/data communication service requests with different types of errors to the target equipment to be detected, and checking whether the target equipment to be detected can respond correctly.
If the test case information indicates that the data set detection should meet the requirements of the target specification document of the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation of 8.5 and the target specification document of DL/T860.10-2018.2.4.9, the target communication service indicated by the target specification document is read, and the target communication service is tested to obtain a test result, wherein the target communication service comprises a read data set value communication service (GetDataSetValues), a set data set value communication service (setDataSetValues), a create data set communication service (CreateDataSet), a delete data set communication service (DeleteDataSet), and a read data set directory communication service (GetDataSetDirectdirectory). Specifically, the CMS communication protocol automatic detection software simulation client side is used for respectively sending correct data set service requests to the target equipment to be tested, checking whether the target equipment to be tested can respond correctly to obtain a test result, and/or the CMS communication protocol automatic detection software simulation client side is used for respectively sending data set service requests with different types of errors to the target equipment to be tested, checking whether the target equipment to be tested can respond correctly to obtain the test result.
If the test case information indicates that the substitution detection is carried out and the requirement of the target specification document DL/T860.10-20186.2.4.11 is met, the CMS communication protocol automatic detection software is used for simulating that the client side sends a correct substitution request to the target equipment to be detected, and whether the substitution value and quality of the target equipment to be detected meet the specification of the target specification document is checked, so that a test result is obtained.
If the measurement information indicates that report detection is performed, the non-cache report model meets the requirements of the target specification document 'technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation' 8.7.1, 8.7.4 and 8.7.5 and the target specification document DL/T860.10-2018.2.4.13. The buffer report model accords with requirements of target specification documents, namely technical specification general class series specification 4 DL/T860 communication messages of an autonomous controllable new generation substation secondary system, 8.7.1, 8.7.2 and 8.7.3 and target specification documents, namely DL/T860.10-2018.2.4.14, and reads target communication service requests indicated by the target specification documents, and respectively sends correct target communication service requests and incorrect target communication service requests to the target equipment to be tested, and whether the target equipment to be tested can respond correctly is checked, so that a test result is obtained. Specifically, the CMS communication protocol is used to automatically detect whether the client terminal is subscribed to the non-buffer Report by using the CMS communication protocol to detect whether the Report service (Report) of the target device to be tested is correct or not, and to obtain the test result, and/or the CMS communication protocol is used to automatically detect whether the client terminal is subscribed to the non-buffer Report by using the CMS communication protocol to detect whether the Report service (Report) of the target device to be tested is correct or not, and to send the read non-buffer Report control value service request (GetURCBValues), the set non-buffer Report control value service request (setcbvalues), the read buffer Report control value service request (getbuffer Report) and the set buffer Report control value service request (setbuffer Report values) with different types of errors, and to check whether the target device to be tested is correct or not, and/or not, and to obtain the test result by using the CMS communication protocol.
If the measurement information indicates that the fixed value group detection is performed, the fixed value group model meets the requirements of a target specification document, namely an independent controllable new generation substation secondary system technical specification general class series specification 4 DL/T860 communication message, 8.6 and a target specification document, namely DL/T860.10-2018.2.4.12, then the target communication service indicated by the target specification document is read, and the target communication service is tested to obtain a test result, wherein the target communication service comprises a selected activation fixed value group (SelectActiveSG), a selected edit value group (SelectEditSG), a set edit value group value (SetEditSGvalue), a confirmed edit value group value (ConfirmEditSGvalues), a read edit value group value (GetEditSGvalues) and a read value group control block value (GetSGCBvalues). Specifically, the CMS communication protocol automatic detection software simulation client side is used for respectively sending the correct fixed value group service requests to the target equipment to be tested, checking whether the target equipment to be tested can respond correctly to obtain a test result, and/or the CMS communication protocol automatic detection software simulation client side is used for respectively sending the fixed value group service requests with different types of errors to the target equipment to be tested, checking whether the target equipment to be tested can respond correctly to obtain the test result.
If the test case information indicates to control and detect, the control model accords with the requirements of the target specification document of the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation of 8.11 and the target specification document of DL/T860.10-2018.2.4.17, the Dons test and the SBons test are executed respectively, and whether the target equipment to be tested can respond correctly is checked, so that a test result is obtained. Specifically, dons: using the CMS communication protocol to automatically detect that the software simulation client sends a request for correct and incorrect execution (operation) and time activation operation (timeactiondoperation) to the target device to be tested, respectively, checking whether the target device to be tested can respond correctly, obtaining a test result, and/or SBOns: using the CMS communication protocol to automatically detect that the software simulation client sends a correct and incorrect selection (Select), execution (operation), time activation operation (timeactiondoperate) request to the target device under test, and checking whether the target device under test can respond correctly, to obtain a test result, and/or Does: using the CMS communication protocol to automatically detect that the software simulation client sends a request for correct and incorrect execution (operation), time activation operation (timeactiondoperation) to the target device under test, respectively, checking whether the target device under test can respond correctly, obtaining a test result, and/or SBOes: and using the CMS communication protocol to automatically detect whether the software simulation client side respectively sends correct and incorrect tape value selection (SelectWithValue), execution (operation) and time activation operation (TimeActivatedOperate) requests to the target device to be tested, and checking whether the target device to be tested can respond correctly or not to obtain a test result.
If the test case information indicates that the detection of the general substation event model is performed, the general substation event model should meet the requirements of the target specification document "the technical specification general class series specification 4 DL/T860 communication message of the autonomous controllable new generation substation secondary system" 8.9 and the target specification document DL/T860.10-2018.2.4.16, then the automatic detection software simulation client of the CMS communication protocol should be used to send a correct read GOOSE reference service request (GetGoReference), a read GOOSE element sequence number service request (getgoose control number), a read GOOSE control block value service request (getgocbvalue), a set GOOSE control block value service request (setgocbvalue), check whether the target device to be tested can respond correctly, and/or receive a GOOSE message sent by the target device to be tested by the network message analyzer, check whether the target device to issue a GOOSE message is correct, and obtain a test result, and/or send a GOOSE simulation tool to the target device to be tested by the CMS communication protocol, and if the request is incorrect, and/or if the request is incorrect, the request is not valid (the request is received by the application software simulation client of the request is received), and if the request is valid, and the request is valid.
If the test case information indicates that the test case information is used for detecting a sampling value model, the sampling value model meets the requirements of a target specification document, namely an autonomous controllable new generation substation secondary system technical specification general class series specification 4 DL/T860 communication message, 8.10 and a target specification document, namely DL/T860.10-2018.2.6.8, respectively sending a correct read multicast sampling value control block value (GetMSVCBVAues), setting a multicast sampling value control block value (setMSVCBVAues) service request to target equipment to be tested by using a CMS communication automatic detection software simulation client, checking whether the target equipment to be tested can respond correctly to obtain a test result, and/or receiving a sampling value message sent by the target equipment to be tested by using a network message analyzer, checking whether the format of the sampling value message issued by the target equipment to be tested is correct to obtain the test result, and/or sending a correct and invalid sampling value message to the target equipment to be tested by using a sampling value message simulation tool, and checking whether the target equipment to be tested can subscribe the sampling value correctly or not to obtain the test result, and/or using the CMS communication automatic detection software simulation client to respectively send a multicast control value control block value (setMSVCBVAues) with different types to be tested by using the CMS communication automatic detection software simulation client to send the error values to the target equipment to be tested to have the correct and the error value (VCBVAues) to respond to the test result, and set the error value to be tested by setting a test result to be tested to the different type of the VCBVAues.
When the test item to be executed is a client consistency test, the CMS communication protocol automatically detects that network connection is established between the software simulation server and the target device to be tested. The CMS communication protocol automatic detection software reads the measurement information, and tests the protocol to be tested of the target device to be tested according to the measurement execution steps.
Specifically, if the test case information indicates that the document and the version, the configuration file and the data model are detected, a detection case, a technical requirement and a method specified by the target specification document are obtained, the document marking and archiving record is checked according to the detection case, the technical requirement and the method, the modification record and the updating record of each version are checked, the configuration file identification is checked, and the data use condition in the data model is checked, so that a test result is obtained. The target specification document may be DL/T860.10, among others.
If the test case information indicates that the data frame format detection is performed, the data frame format meets the requirement of a target specification document of an autonomous controllable new generation substation secondary system technical specification general class series specification 4 DL/T860 communication message, then the target equipment to be tested sends various communication service requests to the simulation server, the simulation server checks whether the target equipment to be tested can process correctly according to a negotiation parameter APDUSize, ASDUSize correct framing return response, a test result is obtained, and/or the target equipment to be tested sends various communication service requests to the simulation server, the simulation server checks whether the target equipment to be tested is abnormal according to a negotiation parameter APDUSize, ASDUSize incorrect framing return response, a test result is obtained, and/or the simulation server uses a data packet of coding errors returned to the target equipment to be tested, and checks whether the target equipment to be tested is abnormal, so as to obtain the test result.
If the measurement information indicates that the application association detection is performed, and the requirements of the target specification documents of general class series specification 4 DL/T860 communication messages 8.2 and 8.15 and the target specification documents of DL/T860.10-2018.2.4.7 are met, the target communication service indicated by the target specification document is read, wherein the target communication service comprises association negotiation (association), association (Release), abort (Test). And (3) enabling the simulation servers to check whether the target equipment to be tested can correctly send negotiation, association, release and abnormal suspension requests, enabling the simulation servers to reply positive responses, checking whether the target equipment to be tested can correctly process to obtain test results, and/or enabling the target equipment to be tested to reply negative responses, checking whether the target equipment to be tested can correctly process to obtain test results, and/or enabling the simulation servers to return negative responses after receiving the negotiation and association requests, checking that the target equipment to be tested can correctly process responses, closing TCP connection in time to obtain test results, and/or enabling the simulation servers to return responses with error parameters, checking whether the target equipment to be tested can correctly process to obtain test results.
If the test case information indicates that the security authentication detection is performed, the security authentication meets the requirement of annex B of the target specification document, namely the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation, then checking whether the transport layer security communication supports the TLS (1.2) protocol, checking whether the key certificate is correct, checking whether the national encryption algorithm is supported, checking whether the application layer security communication supports the security authentication parameter setting and verification, and obtaining a test result. Specifically, checking whether the target device to be tested can adopt the ECDHE_Sm4_Sm3 or ECC_Sm4_Sm3 suite to negotiate and associate with the simulation server based on the TLS protocol, and verifying the response returned by the simulation server to obtain a test result, and/or establishing correct association between the target device to be tested and the simulation server, checking whether the target device to be tested has a renegotiation mechanism according to configuration to obtain the test result, and/or returning a wrong certificate and authentication parameter by using the simulation server, and verifying whether the target device to be tested can correctly process the response returned by the simulation server.
If the test case information indicates that the server/logic device/logic node/data detection should be performed, the requirements of the target specification document of the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation, 8.3 and 8.4 and the target specification document of DL/T860.10-2018.2.4.8 are met, the target communication service indicated by the target specification document is read, the target communication service is tested, the test result is obtained, wherein, the target communication service includes a read server directory communication service (GetServerDirectory), a read logical device directory communication service (GetLogicalDeviceDirectory), a read logical node directory (getlogicalnodirectory), a read all data value (GetAllDataValues), a read all data definition (GetAllDataDefinition), a read all control block value (getallncbvalues), a read data value (GetDataValues), a set data value (SetDataValues), a read data directory communication service (GetDataDirectory), and a read data definition communication service (GetDataDefinition). Specifically, whether the target device to be tested can correctly send the server/logic device/logic node/data service request is checked to obtain a test result, and/or the simulation server is used for respectively replying positive response and negative response to the request sent by the target device to be tested, and whether the target device to be tested can correctly process the request to obtain the test result is checked.
If the test case information indicates that the data set detection should meet the requirements of the target specification document of the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation of 8.5 and the target specification document of DL/T860.10-2018.2.4.9, the target communication service indicated by the target specification document is read, and the target communication service is tested to obtain a test result, wherein the target communication service comprises a read data set value communication service (GetDataSetValues), a set data set value communication service (setDataSetValues), a create data set communication service (CreateDataSet), a delete data set communication service (DeleteDataSet), and a read data set directory communication service (GetDataSetDirectdirectory). Specifically, whether the target equipment to be tested can correctly send the data set service request is checked, each service response is processed to obtain a test result, and/or the simulation server is used for respectively replying positive response and negative response to the request sent by the target equipment to be tested, whether the target equipment to be tested can correctly process is checked, and the test result is obtained.
If the test case information indicates that the substitution detection should be performed and the requirement of the target specification document DL/T860.10-20186.2.4.11 should be met, checking whether the target device to be tested can correctly set the substitution value of the simulation server and displaying the substitution quality.
If the measurement information indicates that report detection is performed, the non-cache report model meets the requirements of the target specification document 'technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation' 8.7.1, 8.7.4 and 8.7.5 and the target specification document DL/T860.10-2018.2.4.13. The buffer report model should meet the requirements of the target specification document "general class 4 DL/T860 communication message of the secondary system technical specification of the new generation transformer substation, which is autonomous and controllable", 8.7.1, 8.7.2, 8.7.3 and the target specification document DL/T860.10-2018.2.4.14, and should check whether the target device to be tested can correctly send a read non-buffer report control block value (geturbbvues), set a non-buffer report control block value (seturbbvues), read buffer report control block value (getbrbvues) and set a buffer report control block value (setbrbvues) service request, so as to obtain a test result, and/or send correct and unexpected reports by using the simulation server, so as to check whether the target device to be tested can correctly process, so as to obtain the test result, and/or reply a positive response and a negative response to the request sent by the simulation server to the target device to be tested, so as to check whether the target device to be tested can correctly process, so as to obtain the test result.
If the measurement information indicates that the fixed value group detection is performed, the fixed value group model meets the requirements of a target specification document, namely an independent controllable new generation substation secondary system technical specification general class series specification 4 DL/T860 communication message, 8.6 and a target specification document, namely DL/T860.10-2018.2.4.12, then the target communication service indicated by the target specification document is read, and the target communication service is tested to obtain a test result, wherein the target communication service comprises a selected activation fixed value group (SelectActiveSG), a selected edit value group (SelectEditSG), a set edit value group value (SetEditSGvalue), a confirmed edit value group value (ConfirmEditSGvalues), a read edit value group value (GetEditSGvalues) and a read value group control block value (GetSGCBvalues). Specifically, whether the target equipment to be tested can correctly send a fixed value group service request is checked to obtain a test result, and/or a simulation server is used for respectively replying positive response and negative response to the request sent by the target equipment to be tested, and whether the target equipment to be tested can correctly process is checked to obtain the test result.
If the test case information indicates to control and detect, the control model accords with the requirements of the target specification document of the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation transformer substation of 8.11 and the target specification document of DL/T860.10-2018.2.4.17, the Dons test and the SBons test are executed respectively, and whether the target equipment to be tested can respond correctly is checked, so that a test result is obtained. Specifically, dons: checking whether the target device under test can correctly send an execution request (operation), a time activated operation request (timeactiondproof), respectively replying a positive response and a negative response to the request sent by the target device under test by using the simulation server, checking whether the target device under test can correctly process, obtaining a test result, and/or SBOns: checking whether the target device under test can correctly send a selection (Select), execution (operation), time activation operation (timeactiondproof) request, respectively replying a positive response and a negative response to the request sent by the target device under test by using the simulation server, checking whether the target device under test can correctly process, obtaining a test result, and/or Does: checking whether the target device under test can correctly send an execution (operation) and time activation operation (timeactiondOperate) request, respectively replying a positive response and a negative response to the request sent by the target device under test by using the simulation server, checking whether the target device under test can correctly process, obtaining a test result, and/or SBOes: checking whether the target device to be tested can correctly send a tape value selection request (SelectWithValue), executing (operation) and time activation operation (TimeActivatedOperate) requests, respectively replying positive response and negative response to the requests sent by the target device to be tested by using the simulation server, and checking whether the target device to be tested can correctly process to obtain a test result.
If the test case information indicates that the detection of the general substation event model is performed, the general substation event model should meet the requirements of the target specification document of the technical specification general class series specification 4 DL/T860 communication message of the secondary system of the autonomous controllable new generation substation, and the target specification document of DL/T860.10-2018.2.4.16, whether the target device to be tested can correctly send a read GOOSE reference (GetGoreference), a read GOOSE element sequence number (GetGOOSEElementNumber), a read GOOSE control block value (GetGoCBValues), a set GOOSE control block value (setGoCBValues) service request is checked, a test result is obtained, and/or a simulation server is used for respectively replying a positive response and a negative response to the request sent by the target device to be tested, and whether the target device to be tested can correctly process is checked, and the test result is obtained.
If the test case information indicates that the detection of the sampling value model is performed, the sampling value model accords with the requirements of a target specification document, namely an autonomous controllable new generation substation secondary system technical specification general class series specification 4 DL/T860 communication message, 8.10 and a target specification document, namely DL/T860.10-2018.2.6.8, then whether the target device to be tested can correctly send a service request for reading a multicast sampling value control block value (GetMSVCBVAles), setting a multicast sampling value control block value (SetMSVCBVAles) to obtain a test result, and/or respectively replying a positive response and a negative response to the request sent by the target device to be tested by using a simulation server tool to check whether the target device to be tested can correctly process to obtain the test result.
In the communication protocol detection method provided by the embodiment, the CMS communication protocol automatic detection software is initialized in response to the detection instruction initiated by the detection management main system. And then, counting at least one device to be tested indicated by the detection instruction and a test item corresponding to each device to be tested, determining a test item to be executed corresponding to each device to be tested in all the test items, carrying out initial configuration, associating the test item to be executed with the corresponding device to be tested, adding the associated device to be tested to a test queue, and taking the initial configuration as model information of the device to be tested. Further, the first target equipment to be tested is ranked in the test queue, a to-be-tested item and a to-be-tested protocol associated with the target equipment to be tested are obtained, the test case information of the to-be-tested item is read, and a test case executing step corresponding to the test case information is entered. And finally, testing the protocol to be tested of the target equipment to be tested according to the test case execution step. The method constructs a test method of a domestic communication protocol CMS protocol, realizes a framework and a software flow, provides a guiding thought for subsequent tool development, and solves the technical problems of excessive artificial tissue intervention and high realization difficulty in the current test.
Further, an embodiment of the present application provides a communication protocol detection system, as shown in fig. 3, including: the data interaction subsystem and the substation DL/T860 protocol map replace a communication protocol automatic test subsystem.
The interaction subsystem is composed of a detection management main system and CMS communication protocol automatic detection software and is used for realizing data interaction between the DL/T860 protocol mapping substitution communication protocol automatic test subsystem of the transformer substation and the detection management main system. The substation DL/T860 protocol mapping alternative communication protocol automatic test subsystem is composed of CMS communication protocol automatic detection software and test equipment, and is used for respectively simulating communication between a server side, a client side and tested equipment to realize parallel test, wherein the test equipment comprises a switch, the tested equipment, a network tester and a relay protection tester.
The CMS communication protocol automatic detection software comprises a detection management main system data interaction module, a test case configuration module, a communication message analysis module and a test record storage module. The detection management main system data interaction module is used for receiving detection instructions initiated by the detection management main system and sending related prompt information to the detection management main system, so that a user confirms test items to be executed or configures test information of the test items to be executed through the detection management main system based on the prompt information. The test case configuration module is used for counting at least one device to be tested indicated by the detection instruction and the test items corresponding to each device to be tested, determining the test items to be executed corresponding to each device to be tested in all the test items, configuring the test information of the test items to be executed, associating the test items to be executed with the corresponding devices to be tested, and adding the associated devices to be tested to the test queue. The communication message analysis module is used for extracting the first target equipment to be tested in the test queue, acquiring a to-be-executed test item and a to-be-tested protocol associated with the target equipment to be tested, reading the test case information from the test information of the to-be-executed test item, entering a test case execution step corresponding to the test case information, and testing the to-be-tested protocol of the target equipment to be tested according to the test case execution step. And the test record storage module is used for recording the test record output by the communication message analysis module and storing the test record into the target storage space.
The system provided by the embodiment of the application initializes the CMS communication protocol automatic detection software in response to the detection instruction initiated by the detection management host system. And then, counting at least one device to be tested indicated by the detection instruction and a test item corresponding to each device to be tested, determining a test item to be executed corresponding to each device to be tested in all the test items, carrying out initial configuration, associating the test item to be executed with the corresponding device to be tested, adding the associated device to be tested to a test queue, and taking the initial configuration as model information of the device to be tested. Further, the first target equipment to be tested is ranked in the test queue, a to-be-tested item and a to-be-tested protocol associated with the target equipment to be tested are obtained, the test case information of the to-be-tested item is read, and a test case executing step corresponding to the test case information is entered. And finally, testing the protocol to be tested of the target equipment to be tested according to the test case execution step. The method constructs a test method of a domestic communication protocol CMS protocol, realizes a framework and a software flow, provides a guiding thought for subsequent tool development, and solves the technical problems of excessive artificial tissue intervention and high realization difficulty in the current test.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, where the software product to be identified may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disc, a mobile hard disk, etc.), and include several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to execute the method described in each implementation scenario of the present application.
To achieve the above object, in an exemplary embodiment, there is also provided a device including a communication bus, a processor, a memory, and a communication interface, and may further include an input-output interface and a display device, wherein communication between the respective functional units may be completed through the bus. The memory stores a computer program and a processor for executing the program stored on the memory to perform the method … in the above embodiment.
It will be appreciated by those skilled in the art that the structure of the entity device provided in this embodiment is not limited to this entity device, and may include more or fewer components, or may combine certain components, or may be a different arrangement of components.
The storage medium may also include an operating system, a network communication module. The operating system is a program for managing the entity equipment hardware and the software resources to be identified, and supports the operation of the information processing program and other software and/or programs to be identified. The network communication module is used for realizing communication among all components in the storage medium and communication with other hardware and software in the information processing entity equipment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general hardware platforms, or may be implemented by hardware. By applying the technical scheme of the application, the CMS communication protocol automatic detection software is initialized in response to the detection instruction initiated by the detection management main system, and the initialization includes but is not limited to initialization parameters, initialization process data and initialization button states. And then, counting at least one device to be tested indicated by the detection instruction and a test item corresponding to each device to be tested, determining a test item to be executed corresponding to each device to be tested in all the test items, carrying out initial configuration, associating the test item to be executed with the corresponding device to be tested, adding the associated device to be tested to a test queue, and taking the initial configuration as model information of the device to be tested. Further, the first target equipment to be tested is ranked in the test queue, a to-be-tested item and a to-be-tested protocol associated with the target equipment to be tested are obtained, the test case information of the to-be-tested item is read, and a test case executing step corresponding to the test case information is entered. And finally, testing the protocol to be tested of the target equipment to be tested according to the test case execution step. Compared with the prior art, the method for testing the CMS protocol of the domestic communication protocol is constructed, a framework and a software flow are realized, a guiding thought is provided for subsequent tool development, and the technical problems of excessive artificial tissue intervention and high implementation difficulty in the current test are solved.
Those skilled in the art will appreciate that the drawings are merely schematic illustrations of one preferred implementation scenario, and that the modules or flows in the drawings are not necessarily required to practice the present application.
Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The foregoing application serial numbers are merely for description, and do not represent advantages or disadvantages of the implementation scenario.
The foregoing disclosure is merely a few specific implementations of the present application, but the present application is not limited thereto and any variations that can be considered by a person skilled in the art shall fall within the protection scope of the present application.

Claims (10)

1. A method for detecting a communication protocol, the method being suitable for CMS communication protocol automatic detection software, comprising:
initializing the CMS communication protocol auto-test software in response to detecting a test instruction initiated by a management host system, the initialization including, but not limited to, initialization parameters, initialization process data, and initialization button states;
Counting at least one device to be tested indicated by the detection instruction and a test item corresponding to each device to be tested, determining a test item to be executed corresponding to each device to be tested in all the test items, performing initial configuration, associating the test item to be executed with the corresponding device to be tested, and adding the associated device to be tested to a test queue, wherein the initial configuration content is model information of the device to be tested;
extracting first target equipment to be tested in the test queue, acquiring a to-be-executed test item and a to-be-tested protocol associated with the target equipment to be tested, reading the test case information of the to-be-executed test item, and entering a test case executing step corresponding to the test case information;
and testing the protocol to be tested of the target equipment to be tested according to the test example executing step.
2. The method according to claim 1, wherein determining a test item to be executed corresponding to each device under test among all the test items, and performing initial configuration includes:
judging whether a first designated test item which is required to be manually matched with a test exists in all the test items;
if the first specified test item exists, sending a test item screening prompt to the detection management main system, so that a user selects the test item to be executed through the detection management main system based on the test item screening prompt, judging whether a second specified test item which is manually matched with initial configuration exists in the test item to be executed, and carrying out initial configuration according to a judging result;
If the first designated test item does not exist, taking all the test items as the test items to be executed, judging whether a second designated test item which is manually matched with initial configuration exists in the test items to be executed, and configuring the test information of the test items to be executed according to a judging result.
3. The method according to claim 2, wherein the determining whether the second specified test item that should be manually matched with the initial configuration exists in the test items to be executed, performing the initial configuration according to the determination result, includes:
judging whether a second designated test item which is manually matched with initial configuration exists in the test items to be executed or not;
if the second designated test item is determined to exist, sending a configuration operation prompt to the detection management main system so that the user modifies initial configuration parameters through the detection management main system based on the configuration operation prompt;
and if the second designated test item is determined not to exist, carrying out initial configuration according to a preset statement file.
4. The method of claim 1, wherein the step of performing the test on the protocol under test of the target device under test according to the test case comprises:
When the test item to be executed is a server consistency test, reading the test case information, wherein the CMS communication protocol automatic detection software simulates a network connection between a client and the target device to be tested;
if the test case information indicates that the document and the version, the configuration file and the data model are detected, a detection case, a technical requirement and a method specified by a target specification document are obtained, document marking and archiving records are checked according to the detection case, the technical requirement and the method, modification records and update records of each version are checked, the configuration file identification is checked, and the data use condition in the data model is checked, so that a test result is obtained; and/or the number of the groups of groups,
if the measurement information indicates that the data frame format is detected, reading a target communication service request indicated by a target specification document, sending the target communication service request to the target equipment to be tested, checking whether the message data frame format responded by the target equipment to be tested is correct, checking whether the target equipment to be tested can correctly frame and return a response according to the negotiation parameters APDUSize, ASDUSize, and/or sending a data packet with a coding error to the target equipment to be tested, and checking whether the target equipment to be tested is abnormal to obtain a test result; and/or the number of the groups of groups,
If the measurement information indicates report detection, and/or general substation event model detection, and/or sampling value model detection, reading a target communication service request indicated by a target specification document, respectively sending a correct target communication service request and a wrong target communication service request to the target equipment to be tested, and checking whether the target equipment to be tested can respond correctly or not to obtain a test result; and/or the number of the groups of groups,
if the measurement information indicates to perform application association detection, and/or server, logic equipment, logic node, data detection, and/or data set detection, and/or fixed value group detection, reading a target communication service indicated by a target specification document, and testing the target communication service to obtain a test result; and/or the number of the groups of groups,
if the test case information indicates that the security authentication detection is performed, checking whether the transport layer security communication supports a TLS (1.2) protocol, checking whether a key certificate is correct, checking whether a national encryption algorithm is supported, and checking whether the application layer security communication supports security authentication parameter setting and verification to obtain a test result; and/or the number of the groups of groups,
if the test case information indicates to perform substitution detection, a correct substitution request is sent to the target equipment to be tested, and whether the substitution value and the quality of the target equipment to be tested meet the specification of a target specification document is checked, so that a test result is obtained; and/or the number of the groups of groups,
And if the test case information indicates to perform control detection, respectively executing a Dons test and an SBOns test, and checking whether the target equipment to be tested can respond correctly or not to obtain a test result.
5. The method of claim 4, wherein if the case measurement information indicates report detection, the method further comprises:
subscribing to a non-cached Report, checking whether the Report service (Report) of the target device under test is correct.
6. The method of claim 4, wherein if the case measurement information indicates that a generic substation event model test or a sample value model test is performed, the method further comprises:
using a network message analyzer to receive a GOOSE message or a sampling value message sent by the target equipment to be tested, and checking whether the message format of the GOOSE message or the sampling value message is correct;
and sending correct and invalid GOOSE messages or sampling value messages to the target equipment to be tested by using a GOOSE message simulation tool or a sampling value message simulation tool, and checking that the target equipment to be tested can correctly subscribe to the GOOSE or the sampling value otherwise.
7. The method of claim 1, wherein the step of performing the test on the protocol under test of the target device under test according to the test case comprises:
When the test item to be executed is a client consistency test, reading the test case information, wherein the CMS communication protocol automatically detects that network connection is established between a software simulation server side and the target equipment to be tested;
if the test case information indicates that the document and the version, the configuration file and the data model are detected, a detection case, a technical requirement and a method specified by a target specification document are obtained, document marking and archiving records are checked according to the detection case, the technical requirement and the method, modification records and update records of each version are checked, the configuration file identification is checked, and the data use condition in the data model is checked, so that a test result is obtained; and/or the number of the groups of groups,
if the measurement information indicates that the data frame format detection is performed, receiving a communication service request indicated by a target specification document sent by the target equipment to be tested, correctly framing and returning a response according to a negotiation parameter APDUSize, ASDUSize, checking whether the target equipment to be tested is correctly processed, and/or incorrectly framing and returning a response according to the negotiation parameter APDUSize, ASDUSize, checking whether the target equipment to be tested is abnormal, and/or returning a data packet with a coding error to the target equipment to be tested, and checking whether the target equipment to be tested is abnormal, thereby obtaining a test result; and/or the number of the groups of groups,
If the test case information indicates to carry out report detection, and/or general substation event model detection, and/or sampling value model detection, and/or substitution detection, reading a target communication service request indicated by a target specification document, checking whether the target equipment to be tested can send a correct target communication service request, and/or respectively replying a positive response and a negative response to the request sent by the target equipment to be tested, and checking whether the target equipment to be tested can be processed correctly to obtain a test result; and/or the number of the groups of groups,
if the measurement information indicates to perform application association detection, and/or server, logic equipment, logic node, data detection, and/or data set detection, and/or fixed value group detection, reading a target communication service indicated by a target specification document, and testing the communication service indicated by the target specification document to obtain a test result; and/or
If the test case information indicates that the security authentication detection is performed, checking whether the transport layer security communication supports a TLS (1.2) protocol, checking whether a key certificate is correct, checking whether a national encryption algorithm is supported, and checking whether the application layer security communication supports security authentication parameter setting and verification to obtain a test result; and/or the number of the groups of groups,
And if the test case information indicates to perform control detection, respectively executing a Dons test and an SBOns test, and checking whether the target equipment to be tested can be correctly processed or not to obtain a test result.
8. The method of claim 7, wherein if the measurement information indicates report detection, the method further comprises:
and sending correct and unexpected reports, and checking whether the target device to be tested can be processed correctly.
9. A communication protocol detection system, characterized by the steps for implementing the method of any one of claims 1 to 7, comprising: the data interaction subsystem and the substation DL/T860 protocol mapping substitute communication protocol automatic test subsystem;
the interaction subsystem is composed of a detection management main system and CMS communication protocol automatic detection software and is used for realizing data interaction between the DL/T860 protocol mapping substitution communication protocol automatic test subsystem of the transformer substation and the detection management main system;
the automatic testing subsystem of the substation DL/T860 protocol mapping alternative communication protocol consists of CMS communication protocol automatic detection software and testing equipment, and is used for respectively simulating the communication between a server side, a client side and tested equipment to realize parallel testing, wherein the testing equipment comprises a switch, the tested equipment, a network tester and a relay protection tester.
10. The communication protocol detection system of claim 9, wherein the CMS communication protocol automatic detection software comprises: the system comprises a detection management main system data interaction module, a test case configuration module, a communication message analysis module and a test record storage module;
the detection management main system data interaction module is used for receiving a detection instruction initiated by the detection management main system and sending related prompt information to the detection management main system so that a user confirms a test item to be executed or configures the test information of the test item to be executed through the detection management main system based on the prompt information;
the test case configuration module is used for counting at least one device to be tested indicated by the detection instruction and test items corresponding to each device to be tested, determining test items to be executed corresponding to each device to be tested in all the test items, configuring test information of the test items to be executed, associating the test items to be executed with the corresponding devices to be tested, and adding the associated devices to be tested to a test queue;
the communication message analysis module is used for extracting a first target to-be-tested device in a test queue, acquiring a to-be-tested item and a to-be-tested protocol associated with the target to-be-tested device, reading test case information from the test information of the to-be-tested item, entering a test case execution step corresponding to the test case information, and testing the to-be-tested protocol of the target to-be-tested device according to the test case execution step;
And the test record storage module is used for recording the test record output by the communication message analysis module and storing the test record into a target storage space.
CN202311331946.1A 2023-10-13 2023-10-13 Communication protocol detection method and detection system Pending CN117376187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311331946.1A CN117376187A (en) 2023-10-13 2023-10-13 Communication protocol detection method and detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311331946.1A CN117376187A (en) 2023-10-13 2023-10-13 Communication protocol detection method and detection system

Publications (1)

Publication Number Publication Date
CN117376187A true CN117376187A (en) 2024-01-09

Family

ID=89397744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311331946.1A Pending CN117376187A (en) 2023-10-13 2023-10-13 Communication protocol detection method and detection system

Country Status (1)

Country Link
CN (1) CN117376187A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008209A (en) * 2017-10-17 2018-05-08 国网江苏省电力公司盐城供电公司 A kind of relay protection automated closed-loop detection method
US20190170822A1 (en) * 2017-12-05 2019-06-06 State Grid Hebei Electric Power Research Institute Fully-automatic closed-loop detection method and device for intelligent substation
CN115333985A (en) * 2022-08-31 2022-11-11 中国电力科学研究院有限公司 CMS client protocol testing method, system, equipment and storage medium
CN115357434A (en) * 2022-07-22 2022-11-18 北京比特大陆科技有限公司 Complete machine testing method, device to be tested, computer device and storage medium
CN115396352A (en) * 2022-08-31 2022-11-25 中国电力科学研究院有限公司 CMS server-side protocol testing method, system, equipment and storage medium
CN115481030A (en) * 2022-09-21 2022-12-16 平安银行股份有限公司 Automatic testing method, device, terminal and storage medium
CN115967660A (en) * 2022-08-18 2023-04-14 山东有人物联网股份有限公司 Method and device for testing CAN protocol conversion, terminal equipment and storage medium
CN116147932A (en) * 2023-02-23 2023-05-23 厦门瑞为信息技术有限公司 Vehicle-mounted automatic tool detection method and device
CN116204365A (en) * 2023-03-24 2023-06-02 深圳市正浩创新科技股份有限公司 Equipment testing method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008209A (en) * 2017-10-17 2018-05-08 国网江苏省电力公司盐城供电公司 A kind of relay protection automated closed-loop detection method
US20190170822A1 (en) * 2017-12-05 2019-06-06 State Grid Hebei Electric Power Research Institute Fully-automatic closed-loop detection method and device for intelligent substation
CN115357434A (en) * 2022-07-22 2022-11-18 北京比特大陆科技有限公司 Complete machine testing method, device to be tested, computer device and storage medium
CN115967660A (en) * 2022-08-18 2023-04-14 山东有人物联网股份有限公司 Method and device for testing CAN protocol conversion, terminal equipment and storage medium
CN115333985A (en) * 2022-08-31 2022-11-11 中国电力科学研究院有限公司 CMS client protocol testing method, system, equipment and storage medium
CN115396352A (en) * 2022-08-31 2022-11-25 中国电力科学研究院有限公司 CMS server-side protocol testing method, system, equipment and storage medium
CN115481030A (en) * 2022-09-21 2022-12-16 平安银行股份有限公司 Automatic testing method, device, terminal and storage medium
CN116147932A (en) * 2023-02-23 2023-05-23 厦门瑞为信息技术有限公司 Vehicle-mounted automatic tool detection method and device
CN116204365A (en) * 2023-03-24 2023-06-02 深圳市正浩创新科技股份有限公司 Equipment testing method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孟江雯等: "适应变电站二次系统全面优化的继电保护系统级测试关键技术", 《电网技术》, vol. 47, no. 9, 30 September 2023 (2023-09-30) *
王振等: "自主可控新一代继电保护装置自动测试系统的设计及应用", 《工业控制计算机》, vol. 35, no. 5, 31 May 2022 (2022-05-31) *

Similar Documents

Publication Publication Date Title
US8079017B2 (en) Automated QS interface testing framework
CN103778038B (en) Method and system for verifying cloud test and remote monitoring integrated circuit device
CN105787364B (en) Automatic testing method, device and system for tasks
CN104065528A (en) Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
CN112367680B (en) External communication test method and device based on intelligent ammeter and computer equipment
CN110460617A (en) Machine examines examination system and Related product
CN108228465A (en) A kind of Software function test method and device
CN111931047A (en) Artificial intelligence-based black product account detection method and related device
CN111666193B (en) Method and system for monitoring and testing terminal function based on real-time log analysis
CN113778879B (en) Interface fuzzy test method and device
CN114500345A (en) Fuzzy test and diagnosis system based on custom protocol configuration
CN117391099A (en) Data downloading and checking method and system for smart card and storage medium
CN108829495A (en) Verification method, device, equipment and the storage medium of multiple database modification affairs
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN117376187A (en) Communication protocol detection method and detection system
CN107341645A (en) Demand of human resources information processing method, device, computer equipment and storage medium
CN111949537A (en) Interface test method, device, equipment and medium
US11693750B2 (en) Virtual device for providing test data
CN102685012B (en) GOOSE secondary virtual wiring dynamic verification method for intelligent device
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN112415404A (en) Battery pack testing method and battery pack testing device
CN112187561A (en) Communication module testing method, device, computer equipment and storage medium
CN108280003A (en) A kind of method and system of automatic Boot Server batch testing
CN115426301B (en) Device detection method, device, equipment and storage medium based on self-generated message
CN112799956B (en) Asset identification capability test method, device and system device

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