 Therefore, the most relevant form of reprogramming is "remote multihop reprogramming" using the wireless medium which reprograms the nodes as they are embedded in their sensing environment.Specialized protocols have been developed for the embedded nodes which minimize the energy consumption of the process as well as reaching the entire network with high probability in as short a time as possible.One key problem in wireless ad hoc networks is foreseeing the variety of possible situations that can occur.