With the popularization of the Data-Over-Cable Service Interface Specifications (DOCSIS) product, many devices have been installed in client sides. the issue of how to maintain the quality while providing quick repair becomes more and more important. in some practical circumstances, the cable modem may lose the factory data which include the calibration table and the digital certificates. These data are unique and vital for the regular operations of cable modem. the traditional way of handling the malfunction product is to ship back the product to the maintenance branch and replaces a working device for the customer. in this paper we will present a solution which is based on network coding over peer to peer (P2P) network to fix the problem automatically online, named Cable modem Auto-Recovery (CAROL).