Management of Routing Table for Reducing Cost and Power Consumption