This link provides a detailed overview of how a packet is handled by Juniper MX routers.
A copy is mirrored here.