Replies: 6 comments 4 replies
-
Did you mean rename |
Beta Was this translation helpful? Give feedback.
-
No need for this change. The name of the event here |
Beta Was this translation helpful? Give feedback.
-
|
To which switches should table stats be requested? Since this feature is optionally supported by switches and we don't know how reliable their implementation will be, I'll recommend to double check to only send if the switch has confirmed its capabilities:
With flow stats we don't do this since it's widely known that's it's supported, but one day we probably should too to be safe. |
Beta Was this translation helpful? Give feedback.
-
You need to figure out how the data will be queried. Indexing only by table seems a bit limited, the original stats is by dpid by table, so the endpoint(s) shouldn't constrain that much. I have an initial impression that even just a single |
Beta Was this translation helpful? Give feedback.
-
|
Overall, the approach looks good, @gretelliz, nice to see how this is shaping up. I ended up opening the threads here, so we can continue here, but since this is supposed to be a blueprint, eventually you'll need to open a PR to kytos too a get it approved. |
Beta Was this translation helpful? Give feedback.
-
|
The blueprint has landed on this PR #351, congrats, Gretel. I'll go ahead and close this issue discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is for issues #330 and kytos-ng/of_core#96
Abstract
This is to support table statistics and concentrate the statistics into a single NApp.
Actions will involve
flow_statsandof_core.Motivation
Currently
flow_statsis responsible to deal with flow statistics, which are exposed in endpoints:GET v1/flow/statsto get the flows stats by dpid.GET v1/packet_count/<flow_id>for packet count of a specific flow.GET v1/bytes_count/<flow_id>for bytes count of a specific flow.GET v1/packet_count/per_flow/<dpid>for packet count per flow.GET v1/bytes_count/per_flow/<dpid>for bytes count per flow.However, OF table stats are not supported.
The goal is to evolve
flow_statsintokytos_statsfor kytos statistics, including OF table stats support.Specification
Information about tables is requested with the
OFPMP_TABLEtype of theOFPT_MULTIPART_REQUESTmessage.The request does not contain any data in the body.
The body of the reply consists of an array of struct
ofp_table_stats, which contains:table_id: Identifier of table.active_count: Number of active entries.lookup_count: Number of packets looked up in table.matched_count: Number of packets that hit table.Proposed Changes
kytos_statsfromflow_stats.of_core.kytos_statsto suport OF table stats.of_corekytos/of_core.flow_stats.receivedwill be renamed tokytos/of_core.kytos_stats.flow_stats.receivedAlso,
of_corewill supportMultipartType.OFPMP_TABLEand a new event will be published, just sokytos_statscan subscribe and react accordingly.Published Events
kytos/of_core.kytos_stats.table_stats.received
Event reporting OF table stats
Content:
kytos_statsA data structure will be updated with the
kytos/of_core.kytos_stats.table_stats.receivedevent.This structure will be indexed by `table_id`` and will allow the following API endpoints to be added:
GET /packets_looked/<table_id>to get the number of packets looked up in the table.GET /packets_matched/<table_id>to get the number of packets matching the table.Future work
Beta Was this translation helpful? Give feedback.
All reactions