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.
-
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_stats
andof_core
.Motivation
Currently
flow_stats
is responsible to deal with flow statistics, which are exposed in endpoints:GET v1/flow/stats
to 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_stats
intokytos_stats
for kytos statistics, including OF table stats support.Specification
Information about tables is requested with the
OFPMP_TABLE
type of theOFPT_MULTIPART_REQUEST
message.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_stats
fromflow_stats
.of_core
.kytos_stats
to suport OF table stats.of_core
kytos/of_core.flow_stats.received
will be renamed tokytos/of_core.kytos_stats.flow_stats.received
Also,
of_core
will supportMultipartType.OFPMP_TABLE
and a new event will be published, just sokytos_stats
can subscribe and react accordingly.Published Events
kytos/of_core.kytos_stats.table_stats.received
Event reporting OF table stats
Content:
kytos_stats
A data structure will be updated with the
kytos/of_core.kytos_stats.table_stats.received
event.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