Protocol Reverse Analysis of Ethernet for Control Automation Technology Based on Sequence Alignment and Pearson Correlation Coefficient

Sensors (Basel). 2024 Dec 11;24(24):7922. doi: 10.3390/s24247922.

Abstract

This study presents a novel algorithm for protocol reverse analysis of EtherCAT. The algorithm combines sequence alignment and the Pearson correlation coefficient. We utilize value distribution statistics and the bit flip rate algorithm to effectively partition the protocol fields. We propose a semantics analysis method based on sequence alignment when HMI data and EtherCAT messages have a direct correlation. Conversely, for circumstances where there exists a decoding relationship between HMI data and EtherCAT messages, a semantic analysis method is proposed that employs the Pearson correlation coefficient. We completed a reverse analysis of the EtherCAT messages from an industrial robot system. By comparing the experiment results with the protocol description document, we validated the effectiveness of the method.

Keywords: Pearson correlation coefficient; industrial protocol; protocol reverse engineering; sequence alignment.