Bio-Inspired Framework for Allocation of Protection Resources in Cyber-Physical Networks In Principles of Cyber-Physical Systems