The application discloses a kind of IEC104 protocol fast analysis device and method based on P4 programmable switch, device includes P4 programmable switch main body, protocol analysis unit, rule configuration unit, matching
execution unit and unpacking unit;Hardware
processing pipeline is equipped in P4 programmable switch main body, protocol analysis unit, matching
execution unit, unpacking unit are sequentially arranged in the corresponding position of flow line and are connected, and rule configuration unit is connected with main body control plane in communication.This device cooperates through each unit, solves the drawbacks that existing
software analysis
delay is high,
throughput is low, operation and maintenance are complex and traditional switch cannot be deeply analyzed, without additional deployment host, reduce cost and operation and maintenance difficulty, programmable and adapt to multiple business scenarios, meet the real-time performance, reliability requirements of new power
system to communication.