1-1
1 IP Routing Protocol Overview
Go to these sections for information you are interested in:
z Introduction to IP Route and Routing Table
z Routing Protocol Overview
z Displaying and Maintaining a Routing Table

Introduction to IP Route and Routing Table

IP Route

Routers are used for route selection on the Internet. As a router receives a packet, it selects an
appropriate route (through a network) according to the destination address of the packet and forwards
the packet to the next router. The last router on the route is responsible for delivering the packet to the
destination host.

Routing Table

Function
The key for a router to forward packets is the routing table. Each router maintains a routing table. Each
entry in this table contains an IP address that represents a host/subnet and specifies which physical
port on the router should be used to forward the packets destined for the host/subnet. And the router
forwards those packets through this port to the next router or directly to the destination host if the host is
on a network directly connected to the router.
Routes in a routing table can be divided into three categories by origin:
z Direct routes: Routes discovered by data link protocols, also known as interface routes.
z Static routes: Routes that are manually configured.
z Dynamic routes: Routes that are discovered dynamically by routing protocols.
Routing entry
Each routing entry in a routing table contains:
z Destination: It identifies the address of the destination host or network of an IP packet.
z Mask: Along with the destination address, it identifies the address of the network segment where
the destination host or router resides. By performing a logical AND operation between destination
address and network mask, you can get the address of the network segment where the destination
host or router resides. For example, if the destination address is 129.102.8.10 and the mask is
255.255.0.0, the address of the network segment where the destination host or router resides is
129.102.0.0. A mask consists of some consecutive 1s, represented either in dotted decimal
notation or by the number of the consecutive 1s in the mask.
z Interface: It indicates through which interface IP packets should be forwarded to the destination.
z Nexthop: It indicates the next router that IP packets will pass through to reach the destination.