05 February 2009

What is Routing Table

Routing table is actually a electronics table that shows you the routes that you have set on the Windows OS, network routers or other network devices. The computer or network devices will know how to do routing based on this routing table.

The Routing Table is usually stored in a router or networked computer in the form of a database or file. When data needs to be sent from one node to another on the network, the routing table is referred to in order to find the best possible route for the transfer of information.





Here is an example of routing table in Windows OS by just opening the command prompt and then type netstat –r or route print. Quite simple to understand it, the computer will send the network packets to the Gateway that tie to particular Network Destination. Example again, the computer will send the network packets to 192.168.1.250 if the destination is in 224.0.0.0 multicast network. Please note the gateway shown with network destination 0.0.0.0 is default gateway. If no specific route found, all the network traffic will be sent to default gateway for routing.

Hop-by-hop Routing is a common routing method used in networks wherein for each node in the network, the address of the next node leading to the destination is listed. So when a data packet arrives at a particular node, it then refers to the routing table to find the address of the next hop destination. Once it reaches that node, it again refers to the routing table for the address of the next hop and so on, until it reaches the final destination.

For a large network consisting of a number of nodes and routers, the routing tables in all the routers need to be consistent, failing which, routing loops can often develop. This can create problems especially in networks that use the hop-by-hop routing model in which the data packets can end up being sent in an endless loop. Routing loops have always been a recurring problem in networks and one of the major goals of designing routing protocols is the careful avoidance of these routing loops.

Routing tables can generally be maintained manually when the network is small and static. The routing tables for all static network devices never change unless and until the administrator of the network changes them manually. In dynamic routing, the devices themselves automatically build and maintain their own routing tables. They do this by exchanging information regarding the network topology using routing protocols. This enables the devices in the network to automatically adapt to the changes in the network like device failures and network congestion as and when they occur.

No comments: