- Purple, 4500 points or more
In my quest for understanding QoS a bit better, I've got the follow math question.
If I want to configure shaping or policing, I get an option of something like:
police <bits> <bytes> <bytes>
The first option is in bits of, don't quote me, <8000-2000000000>. What's the easiest way to convert this to kbps. I'm assuming I divide by 1000.
So for a 2mb policer, I would multiply 2048 * 1000 = 2048000.
The second and third options are in bytes:
How would I calculate this? Dividing by 8 only gives me 125k for the lowest value of 1000. Is that right?
actually in data communication we reason in bps (being all bit-serial communications not byte parallel)
so if you want to police/shape at 6 Mbps you need to use 6000000
bytes/sec are used for throughput measures between computers but notice that
1Kbyte /s = 1024*8 bps
1 Mbyte/s = 1024*1024*8 bps
Hope to help