Sunday, October 27, 2013

Routing Algorithms

Non-Hierarchical Routing:

In this type of routing, interconnected networks are viewed as a single network, where bridges, routers and gateways are just additional nodes.Every node keeps information about every other node in the network
In case of adaptive routing, the routing calculations are done and updated for all the nodes.The above two are also the disadvantages of non-hierarchical routing, since the table sizes and the routing calculations become too large as the networks get bigger. So this type of routing is feasible only for small networks.

Hierarchical Routing:

This is essentially a 'Divide and Conquer' strategy. The network is divided into different regions and a router for a particular region knows only about its own domain and other routers. Thus, the network is viewed at two levels:

The Sub-network level, where each node in a region has information about its peers in the same region and about the region's interface with other regions. Different regions may have different 'local' routing algorithms. Each local algorithm handles the traffic between nodes of the same region and also directs the outgoing packets to the appropriate interface.The Network Level, where each region is considered as a single node connected to its interface nodes. The routing algorithms at this level handle the routing of packets between two interface nodes, and is isolated from intra-regional transfer.Networks can be organized in hierarchies of many levels; e.g. local networks of a city at one level, the cities of a country at a level above it, and finally the network of all nations.

In Hierarchical routing, the interfaces need to store information about:
  • All nodes in its region which are at one level below it.
  • Its peer interfaces.
  • At least one interface at a level above it, for outgoing packages.
Advantages of Hierarchical Routing :
  • Smaller sizes of routing tables.
  • Substantially lesser calculations and updates of routing tables.
Disadvantage :

Once the hierarchy is imposed on the network, it is followed and possibility of direct paths is ignored. This may lead to sub optimal routing.

No comments:

Post a Comment