The invention is suitable for the technical field of power
system communication security, and relates to a method for realizing a security
protection mechanism by a multi-protocol architecture, a medium and a terminal, comprising the following steps: defining a security protection module and a universal interface set; when the protocol module is initialized, a configuration interface is called to register parameters related to a protocol and a
link layer data transceiving interface to the security protection module; after receiving an application
service data unit ASDUs, the protocol module calls a
data interface for
processing the ASDUs to process the data; the protocol module calls a security state monitoring interface for detection; before the protocol module prepares to send data, a process stop state obtaining interface is called, and whether a protocol process is suspended or not is determined; and when the protocol module knows that the flow does not need to be stopped, calling a
data interface for sending the ASDUs to send data, and if the ASDUs are key ASDUs, controlling the security protection module to enter a challenge waiting state. According to the invention, multiple protocols share one set of security
protection mechanism, the
software cost is reduced, and the operation and maintenance efficiency is improved.