What information is contained in a routing table?
A router is a device which connects multiple networks and assists in data transfer between different devices. This communication is achieved by forwarding data packets to the destination port using the information on the routing table. A routing table essentially stores information on how data packets travel in the network. This information is often viewed in a table format. Routing table contains destination-IP address, Network mask address, Gateway, Interface, Matric, and Protocol. For a data packet, which travels across the network, a router queries the routing table to get the required information in order to send the packet to its destination point.
Destination is the IP address of the host or subnet or network address where the data packets need to be delivered. Subnet mask along with the destination IP address gives the information about the route through which the data packets need to travel. Data packets are sent to next router via network interface based on the Gateway address. Interface is the device that is used to deliver the data package. Metric gives the cost of the path through which the data packet is travelling. Suppose if there are multiple routers metrics shows the information on how many routers were used by that data package to reach to the destination …show more content…
This assignment is typically done by the firewall. We could have so many devices internally in the network and it’s unrealistic to assign a public IP to each and every device. NAT makes it easier by assigning the public IP only when it’s required. The destination machine would see the request a sif it’s coming from the firewall instead of our internal device. This is one of the advantages of NAT especially in the light of shortage of public IP