This chapter presents an analysis of algorithms and protocols for sensorSensor allocation in a dual-layer system. The dual-layer system framework is described, taskTask administration protocolsTask administration protocols are presented, and the system with TAPs and HDBA that is able to handle the scenarios of deception, overloading, and tampering is defined in the current chapter. Figure 7.1 illustrates the dual-layer system architecture.