saving bad and good routing table to the disk