Method and device for obtaining control field demarcation point in binary protocol data
暂无分享,去创建一个
The invention provides a method and a device for obtaining a control field demarcation point in binary protocol data. Each phrase width of the device is used for traversal scanning of all to-be-processed frames, and phrases of which the bit number is the same with the bit number of each phrase width are respectively obtained; then the frequency of each phrase appearing repeatedly in each phrase content set is calculated, and the phrases in each phrase content set are selected as key phrases when the frequency of the phrases appearing repeatedly is greater than the predetermined frequency of the phrases; finally the matching counting value of each bit on the to-be-processed frames is obtained by calculating the matching counting value of the initial bit and the end bit of each key phrase in the to-be-processed frames, the bit position corresponding to the matching counting value satisfying the demarcation condition on the to-be-processed frames is selected as a field possible demarcation point, so that the control field demarcation point in the binary protocol data is obtained with the bit as a unit, and the method and the device are suitable for protocol data control field demarcation based on a binary type.