Palo Alto Networks. (2021). PAN-OS® Administrator’s Guide Release 10.1. "Packet Flow Sequence in PAN-OS". This official documentation details the life of a packet. It confirms that Zone Protection (which includes DoS protection) occurs at the ingress stage (Flow lookup), followed by security policy evaluation during session setup (Slow Path), then content inspection, and finally QoS shaping at the forwarding/egress stage.
Stallings, W. (2017). Cryptography and Network Security: Principles and Practice (7th ed.). Pearson. In discussions on firewall processing (Chapter 21, "Firewalls"), the book outlines a general model where initial packet filtering and connection state checks precede the application of more complex security rules and deep content inspection. Egress traffic management like QoS is logically the final step.