What is the common practice of calculating a speed of an ethernet enabled device, and which standard (IEC or JEDEC) is used?
I'm developing and testing a product that is interconnected via ethernet.
The test is basically sending several thousand packets, of specified "effective" size in bytes (without the header), and receiving a time it takes to process all of them.
My intentions are to get a speed that can be compared to a speed of a switch or a router.
I'm confused by how is the resulting speed calculated.
The base equation in my case is:
(packet_size * packet_count) / time_total = speed_in_Bps
But when i neet to get Mb/s is it:
(speed_in_Bps * 8) / (1024 ^ 2)
(speed_in_Bps * 8) / (10 ^ (3 * 2))
or is it some other way that these speeds are calculated?
An example of results with 256MB * 10000 packets processed at 300ms, the fist one gives me speed of 65.1 Mb/s and the second one gives 68.2 Mb/s