1

I am currently working with scheduling components that rely on the PCP information that can be found in the VLAN headers. I was wondering when and how these values are assigned to the frames.

How can priority groups be distinguished during priority assignment? Is all of this done during encapsulation?

New contributor
Artistic Aligator is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2

when and how these values are assigned to the frames.

This operation always happens on ingress when traffic arrives on interface. The 'how' typically is a matter of a policy, which in arista/cisco world is a policy-map applied as service-policy on interface. The 'when' also depends on that policy, which could be various different reasons. There is also marking/re-marking that could happen on egress depending on thresholds and multi-rate policies (e.g. you can have one mark for traffic within certain bandwidth and then remark everything above with another CoS or DSCP value)

Priority groups is nothing but a logical separation. These groups can form queues, be attached to interfaces and follow different policies & queueing strategies. Most vendors have a concept of "priority lane" or "priority queue" which is taking the highest priority of the scheduler (basically, the scheduler will always serve all the traffic within the priority lane first, before it moves to the other lanes). This is very dangerous though as if it is misconfigured it may cause traffic starvation & thus causing issues to control & management plane protocols. Those queues are typically hard limited, meaning anything above the agreed rate will get dropped (or re-marked)

2
  • Could you point me to some documentation on the matter? Working through the whole IEEE802.1Q is kind of a mess and searching for "priority assignment" doesn't yield a lot. Well it does but not a lot of useful information to me. – Artistic Aligator 2 days ago
  • The .1q stuff is fairly simple and there is nothing in there but a priority bits field that are assigned by the device. The other things about how devices use those parameters depend on vendor / device type. Cisco have quite a good documentation about QoS Here – Danail Petrov 2 days ago
0

when and how these values are assigned to the frames.

There is no single way. Some devices tag their frames or packets by themselves (most IP phones), sometimes there's a policy on a switch, a router, or some other way.

You should be aware that not only 802.1Q-tag PCPs are in use but also (likely even predominantly) DSCPs in IP DiffServ.

Which one of the priority fields is actually in use, has priority, and defines exactly which kind of handling (number and size of queues, weighting, ...) depends on the installation at hand. There are "best practice" recommendations but they're not rigid.

Your Answer

Artistic Aligator is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.