path selection is how a router decides where to forward the packet. Each routing protocols has its own why of calculating which path it should take. There's two main types of routing protocols distance-vector (hop count metric) & link state-vector(alive/dead & bandwidth metric).