-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for User Defined Metrics #370
base: master
Are you sure you want to change the base?
Conversation
In the Usage description, we need to add a flow example. |
Corrected the usage description according to suggestion |
# Conflicts: # artifacts/openapi.html # artifacts/openapi.yaml # flow/packet-headers/tcp.yaml
In the Usage example, the masks should not be 0. |
Corrected the example in the description |
Added a example for Ip in Ip in the description |
removed redundant fields from metrics request , |
If the port doesn't find a match, there will be a default bin that it will drop into for all packets not matching any criteria. This way you can match back where the packet went. Also, counts should not be duplicated across bins. This is the user responsibility to make sure of that. The total number of packets across all bins should always equal to number of packets received. |
This behavior is not available in otg-hw or ixia-c (usstream). All UDS are independent, and there is no concept of a default bin, for un-matched packets. We cannot change this behavior in hardware/ixia-c. We can add additional behavior specific to UHD only, if there is UHD UHD-specific requirement from the customer, in future sprints. But to support the UDS feature across all platforms uniformly, within the committed timeline, we should need this basic support, with independent bins. |
|
At that point, it was planned to have a different workflow for UHD (flow-level) & OTG-HW (port-level). Now we agreed to have a common minimum that all platforms will support. |
So let me explain the reasoning we took for having default bins and multiple matches rather than independent matches. Let's assume we have 100 packets receive. independent match A claim it received 50 and independent match B claimed it received 60. This is a single test case where we receive packets from the DUT which can drop or replicate packets. From the received statistics, you cannot conclude that 50 packets that matches A matched B and the total number of packets that didn't match A or B just by looking at the receive packet count. This is not the case for the decision that we had put in place to enforce this and also to help debug issues. |
Redocly View
ReDoc Interactive Demo (redocly.github.io)
New Objects at:
set_config/receive_bins
get_metrics/port/received_bins
Requirement
Offer a means for users to configure and retrieve metrics based on custom conditions established by the user on packets generated by the test tool.
Feature Support and Limiations
Note: supported mode refers to the way the configured bins are populated with rx packets, for more information please refer to the description of the mode attribute in the model.
Usage For Mode Parallel
Usage For Mode Sequential
gNMI Usage
Example query path for ports:
To get gonsappi code from dev branch
go get github.com/open-traffic-generator/snappi/gosnappi@dev-uds
FP tests that can be modified to use this feature
Test RT-261
Current code
With this feature
Test 11.3
Current code
With this feature
Test 1.1`
Current code
With this feature
Portability
If the number of bins per Rx port configured is 1 then the behavior is same across all platforms, or else for bins more than 1, otg-hw/ixia-c follow parallel mode and UHD follows sequential mode