QoS implementation on 887VA - IP Precedence

Hi all,

I'm not a big expert in QoS and I need for your help in order to implement some QoS policy onmy router.

So far I managed to rserve bandwith in output direction an it is fine

class-map match-all UDP
match access-group name QoS_UDP
class-map match-all TCP
match access-group name QoS_TCP
class-map match-all NTP
match protocol ntp
class-map match-all DNS
match protocol dns
!
policy-map DIALER_QOS_OUT
class DNS
bandwidth 300
class NTP
bandwidth 10
class TCP
bandwidth 300
class class-default
random-detect
policy-map PARENT
class class-default
shape average 1000000
service-policy DIALER_QOS_OUT

What I'm looking for is to prioritize some kind fo packets:I understood that I can apply a "set" precedence mark to the incoming packet but How can I instruct the router to prioritize those packets in the queue?

When I have a scenario like this

DNS+NTP+TCP+UDP -------> CISCO887----- TCP+UDP+DNS+NTP---> SERVER

I want that the router re-organize the packets sent to the server and it put DNS/NTP at the begin of the stream and UDP at the end. I want do the same thing in ouput side

Thanks