Routing Principles: Difference between revisions

From
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 13: Line 13:
* Global information, where all routers know the whole topology of the network and calculate the routing tables with a '''link state algorithm'''.
* Global information, where all routers know the whole topology of the network and calculate the routing tables with a '''link state algorithm'''.


* Decentralized information, where the routers only know their directly connected neighbours and calculate their routing tables with a '''distance vector algorithm'''.
* Decentralized information, where the routers only know their directly connected neighbors and calculate their routing tables with a '''distance vector algorithm'''.




== Link State Routing ==
== Link State Routing ==

Link state routing was invented by John McQuillan in 1978 and used in the early days of the ARPANET. Known protocols that implement link stare routing are OSPF or ISIS.

Link state algorithms are based on global information, that means that every node knows all the other nodes (the whole network topology) and the link costs to them. Using Dijkstra's algorithm it then computes the least cost paths to all nodes other and store that information in the routing table.

=== Dijkstra's algorithm ===

=== OSPF ===





Revision as of 23:31, 19 July 2007

Routing Principles

Networking

Routing can be compared with the kind of routing we would do when we try to travel to another city by car. We need to figure out which way to take, we need to get a new route when something on our normal route is blocked, etc.

In computer networks routing is needed in lots of different situation. For example in a circuit switched network (like the phone network) a connection needs to be established at the beginning and it remains static till the end of the conversation. In a packed switched network (like the internet), each packet (chunk of information) gets routed seperately, so the decision which way to take needs to be performed way more often.

Nodes in the network can be added or removed, therefore the routing needs to adjust dynamically to changes of the network topology. Routing algorithms calculate the ways we can take through a network on demand and save or update them to routing tables.

We distinguish between 2 different types of routing:

  • Global information, where all routers know the whole topology of the network and calculate the routing tables with a link state algorithm.
  • Decentralized information, where the routers only know their directly connected neighbors and calculate their routing tables with a distance vector algorithm.


Link State Routing

Link state routing was invented by John McQuillan in 1978 and used in the early days of the ARPANET. Known protocols that implement link stare routing are OSPF or ISIS.

Link state algorithms are based on global information, that means that every node knows all the other nodes (the whole network topology) and the link costs to them. Using Dijkstra's algorithm it then computes the least cost paths to all nodes other and store that information in the routing table.

Dijkstra's algorithm

OSPF

Distance Vector Routing