A method and apparatus for policy-based management of quality of service
treatments of network data traffic flows by integrating policies with
application programs are described. In one embodiment, a quality of
service value is selectively associated with a flow of information
generated by an application program and directed to a network device.
Mappings representing an abstract policy and associating a pre-determined
network quality of service with a traffic flow type of the flow of
information and with an application program are created and stored in a
repository that is accessible by the application program. The mappings are
converted into one or more settings of the network device. The policy is
enforced at the network device in response to receiving traffic from the
application program that matches the traffic flow type. The settings may
be Differentiated Services Code Points or may be RSVP+ messages. Policies
may be represented by statements stored in a directory schema. Each policy
statement is represented by nodes that represent a condition of one of the
traffic flows, an operator, an operand, and an action comprising one of
the quality of service treatments. The nodes start at a root node having a
distinguished name in the directory.