written 8.3 years ago by | modified 2.8 years ago by |
Mumbai University > Electronics and Telecommunication > Sem 6 > Computer Communication and Telecom Network
Marks: 10M
Year: May 2015
written 8.3 years ago by | modified 2.8 years ago by |
Mumbai University > Electronics and Telecommunication > Sem 6 > Computer Communication and Telecom Network
Marks: 10M
Year: May 2015
written 8.3 years ago by | • modified 8.3 years ago |
Routing protocols can be classified into different groups according to their characteristics. Specifically, routing protocols can be classified by their,
For example, IPv4 routing protocols are classified as follows:
Link State Routing:
i. Link state routing has a different philosophy from that of distance vector routing. In link state routing, if each node in the domain has the entire topology of the domain the list of nodes and links, how they are connected including the type, cost (metric), and the condition of the links (up or down) the node can use the Dijkstra algorithm to build a routing table. Figure 2 shows the concept.
ii. The topology must be dynamic, representing the latest situation of each node and each link. If there are changes in any point in the network (a link is down, for example), the topology must be updated for each node.
Building Routing Tables:
In link state routing, four sets of actions are required to ensure that each node has the routing table showing the least-cost node to every other node.
Distance Vector Routing Algorithm:
Table1: Distance Vector Algorithm Used by Each Router
Lines 23 to 47 give the details of updating process. When a record arrives, the router searches for the destination address in the routing table.
If the corresponding entry is found, two cases need to be checked and the route information should be changed.
a. If the record cost plus 1 is smaller than the corresponding cost in the table, it means the neighbors have found a better route to that destination. .
b. If the next hop is the same, it means some change has happened in some part of the network. For example, suppose a neighbor has previously advertised a route to a destination with cost 3, but now there is no path between this neighbor and that destination. The neighbor advertises this destination with cost value infinity.
The receiving router must not ignore this value even though its old entry is smaller. The old route does not exist anymore.
If the entry is not in the table, the router adds it to the table and sorts the table according to the destination address.
Example: Figure 3 shows the initial routing table for an AS. The figure does not mean that all routing tables have been created at the same time; each router creates its own routing table when it is booted.