CN102904779B - Communication protocol consistency detection method and system - Google Patents
Communication protocol consistency detection method and system Download PDFInfo
- Publication number
- CN102904779B CN102904779B CN201210418081.8A CN201210418081A CN102904779B CN 102904779 B CN102904779 B CN 102904779B CN 201210418081 A CN201210418081 A CN 201210418081A CN 102904779 B CN102904779 B CN 102904779B
- Authority
- CN
- China
- Prior art keywords
- message
- communication
- detection
- data storehouse
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention provides a communication protocol consistency detection method and a detection system, wherein the detection system collects communication messages of a master station and a device and obtains a message database by editing and organizing the communication messages, the detection system extracts from the message database, generates and transmits the corresponding message according to detection needs or a message transmitted by equipment to be detected, the detection system also records and analyzes the response situation of the equipment to be detected, and judges whether the communication protocol of the equipment to be detected is consistent or not, items detected by the detection system are increased along with the increasing of the collected communication messages edited and organized by the database, with the increasing of the detection items, the contents detected by the detection system are increased, so that the detection ability and the applicability of the whole system are enhanced.
Description
Technical field
The present invention relates to network service detection technique field, particularly communication protocol consistency detection method and system.
Background technology
The fast development of the society network communications technology, network has been applied to multiple field, reliability and the consistency communicated of network are the bases that real-time performance interconnects, especially at electric power and industrial automation, for meeting reliable delivery of data between network and meeting the needs of interoperability, people have worked out a series of communication protocol, as MODBUS, IEC60870-5-101, DNP, CDT, IEC61850 etc. communication protocol defines the specific communication behavior between main website and electric power observation and control device.
In the current uniformity test carrying out these network communication protocols, usually require a great deal of time and carry out the Code And Decode work of detection messages, and detection range is confined to the degree of understanding of programming personnel to agreement, program does not generally possess good autgmentability and adaptability yet, is more difficult to be suitable in the communication check occasion of larger various protocols and transmission medium.
Summary of the invention
Based on this, be necessary the problem for general communication protocol consistency detection method autgmentability and bad adaptability, provide one to have good autgmentability and adaptive communication protocol consistency detection method and system.
A kind of communication protocol consistency detection method, comprises step:
Collect the communication message of main website and device;
Editor arranges described communication message, obtains message data storehouse;
According to the message that detection demand or the detected equipment of main website are sent, extract from described message data storehouse and generate corresponding message, sending corresponding message;
The response condition of record and analysis equipment under test, judges that whether described equipment under test communication protocol is consistent,
Described message data storehouse comprises message content, type of message and message characteristic code;
Corresponding message comprises corresponding detection entry and corresponding detection messages, and corresponding detection entry generates according to described type of message, and corresponding detection messages generates according to described message content and described message characteristic code.
Wherein in an embodiment, described message data storehouse is the database of critical field composition, and described message characteristic code comprises functional character code, operating characteristics code and response characteristic code field.
Wherein in an embodiment, the reception of described communication message and corresponding message are sent and are completed by network interface, and described network interface is the network interface with 10M/100M/1000M Ethernet interface or RS485 interface.
A kind of unification of communication protocol detection system, comprising:
Communication message collection module: for collecting the communication message of main website and device;
Module is set up in message data storehouse: arranging described communication message for editing, obtaining message data storehouse;
Message extracts sending module: for the message sent according to detection demand or the detected equipment of main website, extract and generate corresponding message, send corresponding message from described message data storehouse;
Communication consistency judge module: for recording and analyze the response condition of equipment under test, judges that whether described equipment under test communication protocol is consistent,
Described message data storehouse comprises message content, type of message and message characteristic code;
Corresponding message comprises corresponding detection entry and corresponding detection messages, and corresponding detection entry generates according to described type of message, and corresponding detection messages generates according to described message content and described message characteristic code.
Wherein in an embodiment, described message data storehouse is the database of critical field composition, and described message characteristic code comprises functional character code, operating characteristics code and response characteristic code field.
Wherein in an embodiment, described unification of communication protocol detection system also comprises: Network Interface Module: for receiving described communication message and sending corresponding message, described network interface is the network interface with 10M/100M/1000M Ethernet interface or RS485 interface.
Implement communication protocol consistency detection method of the present invention, because message data storehouse comprises message content, type of message and message characteristic code, type of message is determined to detect entry, condition code and message content determination detection messages, the detection entry of message data library management whole system, so the communication message newly collected along with the editor of database arranges of the detectable entry of system and adding, along with detector bar object is added, the project that system can detect can become many, thus enhances detectability and the adaptability of whole system.
Accompanying drawing explanation
Fig. 1 is one of them embodiment schematic flow sheet of communication protocol consistency detection method of the present invention;
Fig. 2 is one of them example structure schematic diagram of unification of communication protocol detection system of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below with reference to the accompanying drawings and embodiment, the present invention is further elaborated.Should be appreciated that concrete enforcement described herein is only in order to explain the present invention, does not limit the present invention.
As shown in Figure 1, a kind of communication protocol consistency detection method, comprises step:
S100: the communication message collecting main website and device.
Here be the communication message collecting various possible main website and device, and be not only collect the relevant master station communication message of equipment under test, collect the communication message of various possible main website and device, the Data Source in message data storehouse can be enriched, so that the database that information of setting up is detailed, device described here does not comprise main frame for main website from machine.
S200: editor arranges described communication message, obtains message data storehouse.
Message data storehouse is organized into the communication message editor collected, message data storehouse is by message content, type of message and message characteristic code composition, message content is the general or editable message that can carry out individual event detection, type of message is for determining test item, message characteristic code is the part for editing or need to carry out according to detection the message rewritten, amendment message characteristic code automatically can be needed according to detection in testing process, message content, type of message and message characteristic code determine a unification of communication protocol detection scheme, the whole detection entry of message data library management.Data in message data storehouse with system constantly edit finishing collecting to communication message and add, therefore the detectable entry of system is also in increase, along with detector bar object is added, the project that can detect can become many, and detectability and the adaptability of whole system are obtained for enhancing.
S300: the message sent according to detection demand or the detected equipment of main website, extracts and sends corresponding message, sending corresponding message from described message data storehouse.
Corresponding message comprises corresponding detection entry and corresponding detection messages, corresponding detection entry generates according to described type of message, corresponding detection messages generates according to described message content and described message characteristic code, here, corresponding message is sent to detection module, and described detection module is for judging according to receiving corresponding message the module whether equipment under test communication protocol is consistent.
S400: the response condition of record and analysis equipment under test, judges that whether described equipment under test communication protocol is consistent.
Implement communication protocol consistency detection method of the present invention, because message data storehouse comprises message content, type of message and message characteristic code, type of message is determined to detect entry, condition code and message content determination detection messages, the detection entry of message data library management whole system, so the communication message newly collected along with the editor of database arranges of the detectable entry of system and adding, along with detector bar object is added, the project that system can detect can become many, thus enhances detectability and the adaptability of whole system.
Wherein in an embodiment, described message data storehouse is the database of critical field composition, and described message characteristic code comprises functional character code, operating characteristics code and response characteristic code field.
Here critical field determines a feasible measuring ability, message data storehouse comprises message content, type of message and message characteristic code, message characteristic code is the part for editing or need to carry out according to detection the message rewritten, message characteristic code comprises functional character code specifically, operating characteristics code and response characteristic code field, functional character code represents the data content of communication function and the coding site of these data in message, for the mark of easy-to-look-up communication function, operating characteristics code represents the data content of operating characteristics and the coding site of these data in message, obtain and substitute the classification of operation and the Instance Name of operation for convenient, response characteristic code represents several expected values maybe may replied in tested device message, for the respondent behavior of decision maker.Such as, critical field in message data storehouse has: type of message, message keyword 1, keyword 2, keyword 3..., message content; Wherein type of message can determine test item, and message content is the general or editable message that can carry out individual event detection; Keyword 1, keyword 2... is message characteristic code, and generally speaking in message data storehouse, type of message is used to determine detector bar object, and message content and message characteristic code additional is to determine a feasible measuring ability.
Wherein in an embodiment, the reception of described communication message and corresponding message are sent and are completed by network interface, and described network interface is the network interface with 10M/100M/1000M Ethernet interface or RS485 interface.
The network interface of 10M/100M/1000M Ethernet interface, RS485 interface is existing the most frequently used network interface, is widely used in actual use.
As shown in Figure 2, a kind of unification of communication protocol detection system, comprising:
Communication message collection module 100: for collecting the communication message of main website;
Module 200 is set up in message data storehouse: arrange described communication message for editing, obtain message data storehouse, described message data storehouse comprises message content, type of message and message characteristic code;
Message extracts sending module 300: for the message sent according to detection demand or the detected equipment of main website, corresponding message is extracted from described message data storehouse, send corresponding message, corresponding message comprises corresponding detection entry and corresponding detection messages, corresponding detection entry is determined by described type of message, and corresponding detection messages is determined by described message content and described message characteristic code;
Communication consistency judge module 400: the response condition of record and analysis equipment under test, judges that whether described equipment under test communication protocol is consistent.
Unification of communication protocol detection system of the present invention, because message data storehouse comprises message content, type of message and message characteristic code, type of message is determined to detect entry, condition code and message content determination detection messages, the detection entry of message data library management whole system, so the communication message newly collected along with the editor of database arranges of the detectable entry of system and adding, along with detector bar object is added, the project that system can detect can become many, thus enhances detectability and the adaptability of whole system.
Wherein in an embodiment, described message data storehouse is the database of critical field composition, and described message characteristic code comprises functional character code, operating characteristics code and response characteristic code field.
As shown in Figure 2, described unification of communication protocol detection system, also comprise: Network Interface Module 500: for receiving described communication message and sending corresponding message, described network interface is the network interface with 10M/100M/1000M Ethernet interface or RS485 interface.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (4)
1. a communication protocol consistency detection method, is characterized in that, comprises step:
Collect the communication message of main website and device;
Editor arranges described communication message, obtains message data storehouse;
According to the message that detection demand or the detected equipment of main website are sent, extract from described message data storehouse and generate corresponding message, sending corresponding message;
The response condition of record and analysis equipment under test, judges that whether described equipment under test communication protocol is consistent,
Described message data storehouse comprises message content, type of message and message characteristic code;
Corresponding message comprises corresponding detection entry and corresponding detection messages, and corresponding detection entry generates according to described type of message, and corresponding detection messages generates according to described message content and described message characteristic code;
Wherein, described message data storehouse is the database of critical field composition, described message characteristic code comprises functional character code, operating characteristics code and response characteristic code field, functional character code represents the data content of communication function and the coding site of these data in message, for the mark of easy-to-look-up communication function, operating characteristics code represents the data content of operating characteristics and the coding site of these data in message, obtain and substitute the classification of operation and the Instance Name of operation for convenient, response characteristic code represents several expected values maybe may replied in tested device message, for the respondent behavior of decision maker.
2. communication protocol consistency detection method according to claim 1, it is characterized in that, the reception of described communication message and corresponding message are sent and are completed by network interface, and described network interface is the network interface with 10M/100M/1000M Ethernet interface or RS485 interface.
3. a unification of communication protocol detection system, is characterized in that, comprising:
Communication message collection module: for collecting the communication message of main website and device;
Module is set up in message data storehouse: arranging described communication message for editing, obtaining message data storehouse;
Message extracts sending module: for the message sent according to detection demand or the detected equipment of main website, extract and generate corresponding message, send corresponding message from described message data storehouse;
Communication consistency judge module: for recording and analyze the response condition of equipment under test, judges that whether described equipment under test communication protocol is consistent,
Described message data storehouse comprises message content, type of message and message characteristic code;
Corresponding message comprises corresponding detection entry and corresponding detection messages, and corresponding detection entry generates according to described type of message, and corresponding detection messages generates according to described message content and described message characteristic code;
Wherein, described message data storehouse is the database of critical field composition, described message characteristic code comprises functional character code, operating characteristics code and response characteristic code field, functional character code represents the data content of communication function and the coding site of these data in message, for the mark of easy-to-look-up communication function, operating characteristics code represents the data content of operating characteristics and the coding site of these data in message, obtain and substitute the classification of operation and the Instance Name of operation for convenient, response characteristic code represents several expected values maybe may replied in tested device message, for the respondent behavior of decision maker.
4. unification of communication protocol detection system according to claim 3, is characterized in that, also comprise:
Network Interface Module: for receiving described communication message and sending corresponding message, described network interface is the network interface with 10M/100M/1000M Ethernet interface or RS485 interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210418081.8A CN102904779B (en) | 2012-10-26 | 2012-10-26 | Communication protocol consistency detection method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210418081.8A CN102904779B (en) | 2012-10-26 | 2012-10-26 | Communication protocol consistency detection method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102904779A CN102904779A (en) | 2013-01-30 |
CN102904779B true CN102904779B (en) | 2015-07-22 |
Family
ID=47576827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210418081.8A Active CN102904779B (en) | 2012-10-26 | 2012-10-26 | Communication protocol consistency detection method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102904779B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103559330B (en) * | 2013-10-10 | 2017-04-12 | 上海华为技术有限公司 | Method and system for detecting data consistency |
CN103795146B (en) * | 2014-01-26 | 2016-02-10 | 国家电网公司 | Distribution terminal conformance test method |
CN112649690A (en) * | 2020-12-31 | 2021-04-13 | 上海遨有信息技术有限公司 | Power transmission and transformation equipment Internet of things network access consistency detection method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118282A (en) * | 2011-03-30 | 2011-07-06 | 陕西电力科学研究院 | Communication protocol consistency detection method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8799582B2 (en) * | 2008-12-30 | 2014-08-05 | Intel Corporation | Extending cache coherency protocols to support locally buffered data |
-
2012
- 2012-10-26 CN CN201210418081.8A patent/CN102904779B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118282A (en) * | 2011-03-30 | 2011-07-06 | 陕西电力科学研究院 | Communication protocol consistency detection method and system |
Also Published As
Publication number | Publication date |
---|---|
CN102904779A (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109359098B (en) | System and method for monitoring scheduling data network behaviors | |
CN109934356B (en) | Machine room inspection method based on big data and related equipment | |
CN105491038B (en) | A kind of intelligent equipment protocol analytic method | |
CN104360208A (en) | Acquisition failure analyzing and processing method of electricity utilization information acquisition operating and maintaining system | |
CN110232006B (en) | Equipment alarm method and related device | |
CN112564278B (en) | Relay protection fault information sorting and electronic reporting system and method | |
CN104616092A (en) | Distributed log analysis based distributed mode handling method | |
CN104751285B (en) | Power network schedule automation front-collection data accuracy differentiates and warning system | |
CN102904779B (en) | Communication protocol consistency detection method and system | |
CN105116870A (en) | Fault analysis method, device and system of air conditioning unit | |
CN102256297A (en) | TD-SCDMA (Time Division-Synchronization Code Division Multiple Access) wireless communication network service user perception data collection method | |
CN104064982B (en) | A kind of methods of exhibiting of intelligent substation fault message | |
CN105678456B (en) | Method and system for automatically evaluating running state of electric energy metering device | |
CN110535972B (en) | Centralized control and communication system, equipment and readable storage medium for platform gas detection equipment | |
CN109633332B (en) | Automatic regular inspection method for equipment in power system and fault recording device | |
CN102109551A (en) | System and method for detecting energy consumption and productivity of machine | |
CN107979174B (en) | Workflow operation method based on power grid operation management system | |
CN111246563B (en) | Detection method, device and system of positioning equipment | |
CN206149291U (en) | Transformer station monitoring system | |
CN107066597A (en) | Appraisal report generation method and system after a kind of electric network fault | |
CN112380818B (en) | Automatic ticket forming system based on graphic operation change list | |
CN108984396A (en) | Automatically method and system, the test terminal tested | |
CN110910048B (en) | Railway work site operation monitoring command method and system | |
CN112865312A (en) | Power dispatching system and power data processing method | |
CN103995960B (en) | Remote control rejection rate analysis method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8 Patentee after: ELECTRIC POWER RESEARCH INSTITUTE, GUANGDONG POWER GRID CO., LTD. Patentee after: Beijing Micro-Automation Technology Co.,Ltd. Address before: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8 Patentee before: Electrical Power Research Institute of Guangdong Power Grid Corporation Patentee before: Beijing Micro-Automation Technology Co.,Ltd. |