A Strategy of Designing Routing Algorithms, Based on Ideal Routings