public icon indicating copy to clipboard operation
public copied to clipboard

statistics in SR TE Policies: does it make sense to have in & out packets

Open oscargdd opened this issue 2 years ago • 1 comments

In SR-TE policies the following counters are defined

/network-instances/network-instance/segment-routing/te-policies/te-policy/state/counters/in-labeled-octets /network-instances/network-instance/segment-routing/te-policies/te-policy/state/counters/in-labeled-pkts /network-instances/network-instance/segment-routing/te-policies/te-policy/state/counters/in-octets /network-instances/network-instance/segment-routing/te-policies/te-policy/state/counters/in-pkts /network-instances/network-instance/segment-routing/te-policies/te-policy/state/counters/out-labeled-octets /network-instances/network-instance/segment-routing/te-policies/te-policy/state/counters/out-labeled-pkts /network-instances/network-instance/segment-routing/te-policies/te-policy/state/counters/out-octets /network-instances/network-instance/segment-routing/te-policies/te-policy/state/counters/out-pkts

However, does it make sense to have both in & out statistics? The routers count the packets that match the policy, but not in or out.

oscargdd avatar May 03 '22 16:05 oscargdd

pkts/octets can be different when they are counted on ingress or egress directions. e.g. in-octets doesn't include the segments pushed to the packets while out-octets should. The delta between in-pkts and out-pkts would help in case devices discard some packets subjected to SRTE policies.

vcheny avatar Jul 19 '22 18:07 vcheny

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.

github-actions[bot] avatar May 18 '24 02:05 github-actions[bot]