A Dynamic Routing Method of Redundant Network with an External Program