Re: Convert bytes to MB on cisco router



In article <l7udnWyFb7Pz2rbZnZ2dnUVZ_sidnZ2d@xxxxxxxxxxx>,
Joel Salminen <nomail@nomail> top-posted, now corrected:
<tlanum@xxxxxxxxx> wrote in message
news:1143665971.972063.118670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
when doing a sho int atm and looking at the output.

143849529 packets input, 129326779238 bytes

there is a way to convert this to actual Mb/s

Short answer... there is 8 bits to 1 bytes.

Covert bits to bytes: divide the megabits by 8
Covert bytes to bits: multiple the megabytes by 8

Please re-examine the information the OP has available.
It is in packets and bytes. There is no megabits or megabytes
on it, so neither of your calculations would apply.

Your calculations are also not correct as phrased. One does not
convert "bits" to "bytes" by dividing megabits by 8. Dividing
megabits by 8 would yeild megabytes, not bytes.

But the OP wanted "Mb/s". As I indicated in my earlier posting,
one first has to resolve what "Mb/s" means. "Mb/s" is sometimes
used for "megabits per second", and sometimes for "megabytes per
second" (but not correctly). In turn "megabits" might refer to
one million bits (10^6), or it might refer to "mega" as in the
use in computer memory, which is 1024*1024*1024 (2^30).

Once one has decided what "Mb/s" means, one will need a time
interval in order to do the appropriate calculation. Scaling
the data the OP showed by 8 cannot yield megabits PER SECOND.
.