1. A non-transitory machine readable medium storing a program for processing mobile-device data messages entering a network, the program comprising sets of instructions for: receiving a data message sent by a remote device; identifying a set of remote device management (RDM) attributes associated with the received data message; based on the RDM attribute set, identifying a service tag to associate with the data message; and forwarding the first data message to a network element within the network along a first tunnel, and inserting a tag in a header of the first tunnel, said tag for allowing a set of network elements of the network to process the data message according to a set of policies of the network.