jafingerhut / p4-guide

Guide to p4lang repositories and some other public info about P4
534 stars 156 forks source link

buffer usage measurement in PSA #66

Closed subrnath closed 11 months ago

subrnath commented 11 months ago

I am looking for buffer usage in PSA architecture. As per As per https://p4.org/p4-spec/docs/PSA.html,

A.2. Observation and control of congestion The current PSA does not provide any mechanisms to observe if particular output ports or queues are leading to congestion in the packet buffer. Thus it is not possible without using mechanisms defined outside of PSA to implement a feature like Explicit Congestion Notification (ECN)11. One possibility here is to define a small field, perhaps only 1 bit, that is part of the metadata associated with each packet as it begins egress processing. This field would indicate “how much congestion” the packet experienced in the packet buffer.

Does it mean that there is no such equivalent queueing_metadata_t functionality as it's there in simple_switch?

subrnath commented 11 months ago

posted in https://github.com/p4lang/p4c/issues/4242.