1. Cisco IOS XR Quality of Service Configuration Guide for Cisco ASR 9000 Series Routers
IOS XR Release 7.3.x
"Implementing Modular Quality of Service" chapter.
Section: Attaching a Policy Map to an Interface: This section details the service-policy {input | output} policy-map-name command. It explicitly states
"Use the input keyword to apply the specified service policy to packets received on the interface." This confirms the policy acts on ingress traffic.
Section: Configuring Modular QoS Packet Classification: This section explains the use of match commands within a class-map. The match ip precedence command is used to "classify packets based on the precedence value in the packet." This confirms how traffic is identified.
Section: Configuring Modular QoS Packet Marking: This section describes the set commands within a policy-map. The set dscp command is used to "mark a packet by setting the DSCP value in the IP header." This confirms the remarking action.
2. Cisco IOS XR Quality of Service Command Reference
IOS XR Release 7.3.x
"QoS Commands on Cisco IOS XR Software" chapter.
service-policy command page: The documentation for this command specifies that the input argument "Applies the specified service policy to packets received on the interface or virtual circuit (VC)." This directly supports the analysis that the policy is applied upon entry.
set (QoS) command page: The documentation for the set dscp command confirms its function is to "Set the Differentiated Services Code Point (DSCP) value in the IP header." This validates the remarking action described in the correct answer.