ROUTING TABLES AND ADDRESS MASKS
Additional information is saved in routing table. Destination is kept as network address. Next hop is saved as IP address of router. Address mask describes how many bits of address are in prefix. Prefix describes how much of address used to check network.
For example, class B mask is 255.0.0.0 which is needed for subnetting. A routing table with address masks is given in the figure below: