|
There is at least one homework question where you need to provide a answer using bps. In the first class, I mentioned a anomaly with how we represent bits and how we represent bytes.
You often see the abbreviations Kbps (or Kb/s) as well as KB. Note that the capital 'B' typically denotes bytes, whereas the lower case 'b' denotes bits. The big difference however, is how many bits or how many bytes we are talking about.
When someone says they have a 56K modem, they mean a 56Kb/s modem which equates to 56,000 bits/second. If however, someone says they have a 56KB file to transmit, the file size is not 56,000 bytes.
The problem is that we count bits in powers of 10 (decimal). So 56 kilobits would be 56 * (10^3) - that's 56 times 10-raised to the 3rd power. For Mb/s (1,000,000), you'd raise 10 to the 6th power. This is pretty normal and what you might expect.
If however, we were talking about kilobytes, then the quanity is measured using powers of 2. For example, 56 kilobytes would then be 56 * (2^10) - that's 56 times 2-raised to the 10 power. A kilobyte is 1024 bytes (or 2 to the 10th power), not 1000 bytes.
So to drive this point home a little further...
10Kb/s = 56 * (10^3) = 56 * 10 * 10 * 10 = 56,000 bits per second
56KB = 56 * (2^10) = 56 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 = 57,344 bytes
They are both close, but not exactly the same number.
Also remember that a byte usually contains 8 bits. To convert from bytes to bits, multiple by 8.
John
|