Routers use the idea above to figure out to which network to route
packets. When (D&M) matches a network address A
in a routing table, it means the packet with address D must
be delivered to network A. The other information in the
routing table row containing A will tell the software where
to send the packet for its next hop.
Example:
A == 1000 0000 0000 1010 0000 0000 0000 0000 (128.10.0.0)
D == 1000 0000 0000 1010 0000 0010 0000 0011 (128.10.2.3)
M == 1111 1111 1111 1111 0000 0000 0000 0000 (255.255.0.0)
D&M == 1000 0000 0000 1010 0000 0000 0000 0000 (128.10.0.0)
Note that D&M == A.