Dear reckoning IOTlers,

in https://github.com/RIOT-OS/RIOT/pull/5985 we started a discussion about
what should count for which statistic when using the netstats_l2 module.

My rationale for the "old style" of counting was that L2 is the lowest layer
where we can analyze traffic from the node's perspective. Hence, I'd like to
count every byte/packet the node receives. However, I realized that this might
be a bad idea, given different transceiver capabilities. Old or very cheap
transceivers leave most packet parsing and error handling to the driver
developer. Hence, here the driver will receive a lot more packets than for
more advanced transceivers. Hence, we should probably agree that only
successful received packets, i.e., packets with header information and correct
checksums (if any) targeted to the receiving node (matching destination
address) are counted as successful received packets. All other packets may go
into an additional "RX error" field of the statistics.

However, I would vote that packets that are dropped by the driver, e.g.,
because of insufficient memory, should _not_ count as "RX error" for L2. We
could consider adding another field, e.g. "RX dropped" for this purpose.

What do you think?

Cheers,
Oleg
-- 
printk("autofs: Out of inode numbers -- what the heck did you do??\n"); 
        linux-2.0.38/fs/autofs/root.c

Attachment: signature.asc
Description: PGP signature

_______________________________________________
devel mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/devel

Reply via email to