The article discusses algorithmic methods for ensuring the fault tolerance of the electronic component base (ECB). The protection methods used in regular and irregular structures are described. The essence of Hamming code algorithms, composite code, error correction and detection codes is revealed. The advantages and disadvantages of using arithmetic residual code, the method of redundancy at the level of program code fragments, are shown.