In: Computer Science
describe following about the router
d. Border router
e. an exterior router
f. Describe a Routing table
g. What is the best path, and how is it defined? Give an example
h. Describe the following commands and give an example of its use
• Route
• Netstat
• tracert
d A border router is one that is located near border between the single or many Open shortest path first (OSPF) areas. It is a router linking LAN with the internet or WAN
e. An exterior router is one that is functional from the internet backbone. An exterior router protocol transfers information between router in different autonomous systems.
f. Routing table is the space where routing information is stored, and contains entries to the destination nodes. It symbolises where packets travelling over the IP network shall be projected. Routing tables are used to all the IP enabled devices, like switches.
g. The best routing path is the one that involves minimum cost in routing from source to destination. It is defines by the longest prefix match and the admimnistrative distance.
Longest prefix match means routers match to the routes with maximum match to the destination address. For example, if we have a packet with destination address to 192.168.50.1 , adn the router has 192.168.5.0/14 and 192.168.50.0/20. the packet shall be forwarded to 192.168.50.0/20
Administative distance means choosing the router with minmum distance in the routing table. For example, if we have two route, one a regular one and one from OSPF, the OSPF route will be selected.
h. The route command lets us to make manual entries to the routing table.
eg. route add - net 192.52.80.0 netmark 255.255.255.0 dev eth0
This adds a route to 192.52.80.x
Netstat is a command used to display information about routing tables, network connections and related statistics.
eg. Netstat -a . This displays all the non listening and the listening sockets.
tracert command is used to display information about the path taken by the packet from the source node to the destination
eg. trancert www.google.com . This will display the path from our local device to the google.com