OpenMobileAlliance / OMA_LwM2M_for_Developers

OMA LightweightM2M public resources.
http://openmobilealliance.github.io/OMA_LwM2M_for_Developers/
Other
239 stars 52 forks source link

Connectivity stats related clarification and suggestion #274

Closed pkreddy04 closed 6 years ago

pkreddy04 commented 6 years ago

For resources 'Tx Data', 'Rx Data', 'Max Message Size' and 'Average Message Size'. There can be multiple network bearer's which may be active on the device side, the spec does not clarify if cumulative stats should be collected for all interfaces or just the network bearer used for the LwM2M communication(4/0/0) be used for stats collection? There is a no correlation element between network bearer and stats collections.

Intermediate suggestion is that we can add that the connectivity stats be collected on the network bearer which is used by the LwM2M for communication when the ‘start’ operation is invoked. So, that leaves the ambiguity out that if a network interface is switched after 'start' is invoked. Cumulative stats may make sense for 'Tx Data', 'Rx Data' but does not make sense 'Max Message Size' and 'Average Message Size'. Also, sometimes that user may just be interested in data for one network bearer if there are multiple bearers. Ex. WiFi and Cellular can be under different payment plans, then user may just want to know how much data is being used by Cellular for a certain period and do necessary control.

But long term another resource should be introduced in this object which explicitly tells the network bearer for which the stats are to be collected.

pkreddy04 commented 6 years ago

There is a statement in the spec 'When reporting the Tx Data or Rx Data, the LwM2M Client reports the total KB transmitted/received over IP bearer(s), including all protocol header bytes up to and including the IP header' So, this clarifies that all IP bearers should be used for reporting.