r/AskComputerScience • • Jan 31 '25
In which unit is bandwidth measured?? (More info in description (
In my book, the answer is bps but my teacher said the answer is hertz and in google the answer is also bps but some some websites claim that the answer is hertz.
What is the right answer? Please also explain đđ
1
Upvotes
16
u/meditonsin Jan 31 '25 edited Jan 31 '25
Depends on the context.
Originally the term "bandwidth" comes from radio stuff. A lot of radio signaling essentially works like this: You have a carrier frequency where you brodcast a steady sine wave and then you have frequency bands left and/or right of the carrier that you broadcast on to modulate the sine wave on the carrier to encode data. The wider those side frequency bands are, the more data you can encode per wave on the carrier. So the more "bandwidth" you have, the more data you can transmit per time unit.
In this context, the width of the sidebands is denominated by the upper and lower frequency of the sideband, measured in Hz.
Networking adopted the term with the "rate of data transfer per time unit" meaning and that is measured in bps.
4
u/OddInstitute Jan 31 '25
As others have noted, hertz describes the literal width of the communication band in bits per second describes the rate of information transfer across that channel.
What others havenât noted is that there are theorems from information theory which connect them, the simplest one is the Shannon-Hartley theorem: C = Blog2(1+S/N). That is to say that your maximum bandwidth in bits per second is equal to your bandwidth in hertz times the log base two of one plus your signal to noise ratio, assuming additive white Gaussian noise.
-2
u/Dornith Jan 31 '25 edited Jan 31 '25
Hz isn't a unit of data transfer, it's a unit of frequency. It's defined as 1/s. E.g. 7hz means 7 times per second.
As a bandwidth unit, it doesn't make much sense. 7 what per second? Bits? Bytes? Nibbles?
I would assume your professor is using bit as an implicit unit so 7hz would be 7 bits per second, or in other words, 7bps.
You could check this by checking the units of any problem your professor demonstrates to you using dimensional analysis.
0
u/johndcochran Jan 31 '25
Hertz measures how fast the signal changes. But assuming hertz = bps indicates that for each signal change, only 1 bit is transmitted. That is not always the case. One of the best examples I can think of is the old fashioned modem used on telephone lines. The most advanced versions had their signal change only 8000 times per second, so a hertz of 8K. But each signal change encoded 7 bits of data, so they were considered 56K bps modems.
Another analogy would be flash memory. The older flash memories stored 1 bit per cell. A nice equivalence. But later versions were capable of storing 2, 3, or even 4 bits per cell by allowing for discrete charge levels per cell. Same general idea. One unit of transmission does not always equate to 1 bit of data.