主权项 |
1. A method comprising: storing, by a network device, traffic policies pertaining to a label-based network, wherein the traffic policies include color-aware traffic policies and the traffic policies are mapped to one or more types of labels of the label-based network, wherein the one or more labels include at least one of a virtual private network label or a network label; using a cascaded queuing system that filters traffic flows pertaining to a particular set of the traffic policies, wherein the cascaded queuing system includes different queues corresponding to different labels of the label-based network, which are designated for the particular set of the traffic policies;
receiving, by the network device, a traffic flow; computing, by the network device, a route for the traffic flow; identifying, by the network device, one or more labels associated with the traffic flow; selecting, by the network device, one or more of the traffic policies in response to the identifying of the one or more labels; and transmitting, by the network device, the traffic flow along the route in the label-based network according to the selected one or more of the traffic policies. |