This article describes the action taken by the SRX gateway on receipt of packets with pre-marked IP ToS/DSCP values that need IPSec encapsulation, as well as on IPSec encapsulated packets that need decapsulation.
How does the SRX handle ToS/DSCP marking for ESP traffic?
The SRX will copy the received value of the ToS/DSCP field from the clear-text packet into the IPSec header of the encapsulated packet.
No change is done to inner clear-text packet markings.
The SRX will mark the outer header of the encapsulated packet based on the packet classification.
The inner clear-text packet will retain its original IP ToS/DSCP value regardless of the IP ToS/DSCP value contained in the IPSec header.