Overclock.net › Forums › Software, Programming and Coding › Networking & Security › A Guide to Bits and Bytes.
New Posts  All Forums:Forum Nav:

A Guide to Bits and Bytes.

post #1 of 12
Thread Starter 
METICADPA'S GUIDE TO BITS AND BYTES


I see a lot of people mixing things like this up consistently (and indeed it's causing a lot of confusion in OT just now) and I feel that OCN could use something to help them along.


Note: Any pedants talking about mebibytes, etc. rest assured that I do know the difference, it's just not relevant to what I'm trying to do here...

First off, what is a bit? A bit is the amount of storage space required to store 1 character of binary; a 1 or a 0. I'm sure we've all heard the term "bit" in colour-depth of images or any number of other things, but that's not for this thread. A bit is the smallest unit of storage. It has the unit "b". Lower case b. The case is important.

I'm sure everyone has similarly heard of the byte. What is a byte? Simply put, a byte is 8 bits. It has the unit "B". Upper case B.

To convert between bits and bytes, it really is as easy as multiplication or division by 8. To convert from bits to bytes, we divide by 8; to convert from bytes to bits, we multiply by 8.

Example: Represent 64b (bits) in bytes. We have 64 bits here, and as we now know, a byte is just 8 bits. 64b/8 = 8 bytes.

Example 2: Represent 128B (bytes) in bits. As we know, a byte is made up of 8 bits. 128 bytes * 8 = 1024bits or 1kilobit (kb), which brings me nicely on to the next part of this.

Kilobits and Kilobytes

What is a kilobit or a kilobyte?

Well, what do we know about the prefix "kilo" already? It means 1,000, generally, but not in this case; it means 1,024 here, or 2^10.

So what is a kilobit? A kilobit is simply 1,024 bits together. 2^10 bits. It has the unit "kb" (lower case k and b).

What is a kilobyte? A kilobyte is simply 1,024 bytes together. 2^10 bytes. It has the unit "KB" (upper case K and B).

How do we convert between the two? It's just as simple as converting between bits and bytes: the only difference is that the numbers are larger.

Example: Represent 128kb (kilobits) in KB (kilobytes). As we already know, a byte is just 8 bits, and a kilobyte is no different: it's just 8 kilobits. So to convert, we simply divide the number of kilobits we have by 8. 128Kb/8 = 16 kilobytes.

Example 2: Represent 128KB (kilobytes) in kb (kilobits). By now, you should either not be reading this, or understanding that a byte is made up of 8 bits. To convert between these, we simply multiply by 8. 128KB*8 = 1024kb or 1Mb.

Megabits and Megabytes

What is a megabit or a megabyte?

Think about what we know of the prefix "mega" already. It usually means "million", but in this case, it means 1,048,576, or 2^20.

So what is a megabit? I'm sure you're understanding this by now, but a megabit is just 1,048,576 bits. 2^20 bits. It has the unit "Mb" (upper case m lower case b).

What is a megabyte? A megabyte is simply 8 megabits together. 2^20 bytes. Its unit is "MB" (upper case M and B).

How do we convert between the two? Again, the process is identical to the other two steps, but I'll put down a couple of examples as a reference anyway.

Example: Represent 128Mb (megabits) in MB (megabytes). Since a megabyte is - like the others - just made up of 8 bits, it's as simple as division by 8. 128Mb/8 = 16MB.

Example 2: Represent 128MB (megabytes) in Mb (megabits). Since we know that a byte is made up of 8 bits, a megabyte is exactly the same. To convert, we simply multiply by 8. 128MB * 8 = 1024Mb.

Now, if you're paying attention, you'll notice that the first letter for "kilobits" is lower case, but the first letter for "megabits" is upper case. Why is this? Truthfully, I have no idea. However, the "b" always stays lower case when representing bits.

Real-World Scenarios

This is where most people get confused and I blame the ISPs entirely for this. You'll often see things advertised as "upto 8 megabits!", which in reality does not mean 8 megabytes, as we know by now. I'm sure this is just something that they invented to confuse people.

To combat this, just check it out in writing. If it's telling you that you're going to get the speeds in megabits, simply divide by 8 to get your theoretical maximum download speed. Of course, this is very rarely achieved.

...that's about all the examples I've got.

So that's me done. I hope this helps explain things to some people. If there are any typos or anything in the thread, be sure to either post in the thread and PM me so I can fix them. If there's any explanation that's unclear, do the same thing, and I'll try and rectify it.
Edited by meticadpa - 2/27/11 at 4:23pm
    
CPUMotherboardGraphicsRAM
Core i7 930 at 4.5GHz, HT on EVGA X58 SLI LE ASUS 7970 TOP Crucial Ballistix Tracers, 6GB, 1720MHz, 8-8-8-24 
Hard DriveOptical DriveOSMonitor
120GB Force 3, 2 Samsung F3 500GB in RAID 0, WD... Sony  Windows 7 64 bit LG W2452TX - 1920 x 1200 
KeyboardPowerCaseMouse
Razer Black Widow Antec TruePower New 650W (SeaSonic) Clemens 004 Logitech G500 
Mouse PadAudioAudioAudio
XTrac Ripper XXL Musliand Monitor 02 Alessandro MS1/JVC RX700 Tannoy Bookshelf Speakers 
Audio
Samson Servo 120A Amplifier 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 930 at 4.5GHz, HT on EVGA X58 SLI LE ASUS 7970 TOP Crucial Ballistix Tracers, 6GB, 1720MHz, 8-8-8-24 
Hard DriveOptical DriveOSMonitor
120GB Force 3, 2 Samsung F3 500GB in RAID 0, WD... Sony  Windows 7 64 bit LG W2452TX - 1920 x 1200 
KeyboardPowerCaseMouse
Razer Black Widow Antec TruePower New 650W (SeaSonic) Clemens 004 Logitech G500 
Mouse PadAudioAudioAudio
XTrac Ripper XXL Musliand Monitor 02 Alessandro MS1/JVC RX700 Tannoy Bookshelf Speakers 
Audio
Samson Servo 120A Amplifier 
  hide details  
Reply
post #2 of 12
tl;dr
    
CPUMotherboardGraphicsRAM
Duo e8400 @ 4.2Ghz 1.37v eVGA Nforce 780i GTX465 + 9600gt Mushkin 4 Gigz 
Hard DriveOSMonitorKeyboard
1TB WD Black, Seagate 250GB + 400GB WD external ASUS VW266H ~ 26" 1200p MS X6 Sidewinder 
PowerCaseMouse Pad
OCZ GameXStream 700W CM Stacker Hustler mag 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Duo e8400 @ 4.2Ghz 1.37v eVGA Nforce 780i GTX465 + 9600gt Mushkin 4 Gigz 
Hard DriveOSMonitorKeyboard
1TB WD Black, Seagate 250GB + 400GB WD external ASUS VW266H ~ 26" 1200p MS X6 Sidewinder 
PowerCaseMouse Pad
OCZ GameXStream 700W CM Stacker Hustler mag 
  hide details  
Reply
post #3 of 12
STOOOOYYAAAAAA <3

And yes, I agree entirely.
Twilight Sparkle
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 d0 @ 4.02GHz Asus P6T SE MSI Twin Frozr Radeon 7850 18GB DDR3 
Hard DriveHard DriveHard DriveOptical Drive
WD Caviar Black  Seagate OCZ Vertex 3 SATA LITE-ON DVD Burner 
CoolingOSMonitorKeyboard
Scythe Mugen 2 Windows 7/OS X 2x AOC 21.5in 1080p Logitech K520 
PowerCaseMouseMouse Pad
850W Corsair TX Custom CM 690 Logitech G9X Generic 
  hide details  
Reply
Twilight Sparkle
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 d0 @ 4.02GHz Asus P6T SE MSI Twin Frozr Radeon 7850 18GB DDR3 
Hard DriveHard DriveHard DriveOptical Drive
WD Caviar Black  Seagate OCZ Vertex 3 SATA LITE-ON DVD Burner 
CoolingOSMonitorKeyboard
Scythe Mugen 2 Windows 7/OS X 2x AOC 21.5in 1080p Logitech K520 
PowerCaseMouseMouse Pad
850W Corsair TX Custom CM 690 Logitech G9X Generic 
  hide details  
Reply
post #4 of 12
i never really liked Stoya, but that's just me.
MATX
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7-3820 Asus Rampage IV Gene x79 HIS Radeon HD 7970 Palit Geforce GTS 450 Sonic Platinum (PhysX) 
RAMHard DriveHard DriveOptical Drive
Kingston HyperX 4x4GB DDR3-1600 XMP Kingston SSDNOW V+200 120GB Western Digital Caviar Black 1.5TB Samsung SH-222AL Lightscribe 
CoolingOSMonitorKeyboard
Corsair H70 Windows 7 Home Premium x64 ASUS VW266 25.5" 1920x1200 LCD Ducky Keyboard DK9008 
PowerCaseMouseMouse Pad
Corsair TX750 V2 750W Silverstone TJ08B-E Logitech G500 Razor Vespula 
  hide details  
Reply
MATX
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7-3820 Asus Rampage IV Gene x79 HIS Radeon HD 7970 Palit Geforce GTS 450 Sonic Platinum (PhysX) 
RAMHard DriveHard DriveOptical Drive
Kingston HyperX 4x4GB DDR3-1600 XMP Kingston SSDNOW V+200 120GB Western Digital Caviar Black 1.5TB Samsung SH-222AL Lightscribe 
CoolingOSMonitorKeyboard
Corsair H70 Windows 7 Home Premium x64 ASUS VW266 25.5" 1920x1200 LCD Ducky Keyboard DK9008 
PowerCaseMouseMouse Pad
Corsair TX750 V2 750W Silverstone TJ08B-E Logitech G500 Razor Vespula 
  hide details  
Reply
post #5 of 12
Sticky!
Anthrax 2.0
(13 items)
 
  
CPUMotherboardGraphicsRAM
G0 Q6600 @ 3.6ghz GIGABYTE GA-EP45-UD3P ASUS 5850 G.SKILL Trident 2X2GB @ 960Mhz 
Hard DriveOSMonitorPower
WD Black-500GB/1TB Samsung Spinpoint F3 Windows 7 Ultimate x64 24" Samsung 245BW Corsair 850HX Modular 
CaseMouse
Corsair Obsidian 800D Razer Krait and Razer Diamondback 
  hide details  
Reply
Anthrax 2.0
(13 items)
 
  
CPUMotherboardGraphicsRAM
G0 Q6600 @ 3.6ghz GIGABYTE GA-EP45-UD3P ASUS 5850 G.SKILL Trident 2X2GB @ 960Mhz 
Hard DriveOSMonitorPower
WD Black-500GB/1TB Samsung Spinpoint F3 Windows 7 Ultimate x64 24" Samsung 245BW Corsair 850HX Modular 
CaseMouse
Corsair Obsidian 800D Razer Krait and Razer Diamondback 
  hide details  
Reply
post #6 of 12
Yes, can we sticky this? I'm tired of hearing kids saying: "My 100Mbps connection is only getting 12Mbps!!!!!!!!!!! ZOMG!!!!!!!"

    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
post #7 of 12
Do you realise a bit is a Binary Digit? and yeah... kibibytes/mebibytes/gibibytes for things like RAM.
    
CPUMotherboardGraphicsRAM
Q6600 @ 4.5GHz Asus Crosshair IV Formula Palit 7600GS 256MB AGP 16GB DDR2 Dominators 
Hard DriveOptical DriveOSMonitor
Samsung F3 1TB IDE IDE Blu-ray Windows 8 Pirate Edition 15" CRT 
KeyboardPowerCase
IBM Model M DIN connector 1500W Shaw Silverstone SG05 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Q6600 @ 4.5GHz Asus Crosshair IV Formula Palit 7600GS 256MB AGP 16GB DDR2 Dominators 
Hard DriveOptical DriveOSMonitor
Samsung F3 1TB IDE IDE Blu-ray Windows 8 Pirate Edition 15" CRT 
KeyboardPowerCase
IBM Model M DIN connector 1500W Shaw Silverstone SG05 
  hide details  
Reply
post #8 of 12
A bit is only a binary digit if you're counting in binary.
That's like saying "your fingers are only binary digits".
While it could be true in some scenarios, it's not a blanket statement.
post #9 of 12
Quote:
Originally Posted by beers View Post
A bit is only a binary digit if you're counting in binary.
That's like saying "your fingers are only binary digits".
While it could be true in some scenarios, it's not a blanket statement.
http://en.wikipedia.org/wiki/Bit

pretty sure a "Bit" is a contraction of "Binary digIT"
    
CPUMotherboardGraphicsRAM
Q6600 @ 4.5GHz Asus Crosshair IV Formula Palit 7600GS 256MB AGP 16GB DDR2 Dominators 
Hard DriveOptical DriveOSMonitor
Samsung F3 1TB IDE IDE Blu-ray Windows 8 Pirate Edition 15" CRT 
KeyboardPowerCase
IBM Model M DIN connector 1500W Shaw Silverstone SG05 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Q6600 @ 4.5GHz Asus Crosshair IV Formula Palit 7600GS 256MB AGP 16GB DDR2 Dominators 
Hard DriveOptical DriveOSMonitor
Samsung F3 1TB IDE IDE Blu-ray Windows 8 Pirate Edition 15" CRT 
KeyboardPowerCase
IBM Model M DIN connector 1500W Shaw Silverstone SG05 
  hide details  
Reply
post #10 of 12
TL;DR: 8 b/Kb/Mb = 1 B/KB/MB

And to figure out ISP's "real speed" from their advertised speed, take it and divide by 8.
BL1
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 2600K Gigabyte P7A-UD7-B3 2x EVGA GTX 570 SLI 8GB Corsair XMS 
Hard DriveOSMonitorKeyboard
Crucial C300 64GB, WD Caviar Black 1TB, F4 2TB x2 Windows 7 Ultimate 64-bit SP1 Hanns·G 28" LCD @ 1920x1200 Generic, crappy membrane 
PowerCaseMouse
Antec HCP-1200 Thermaltake Armor VA8000 Logitech G500 
  hide details  
Reply
BL1
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 2600K Gigabyte P7A-UD7-B3 2x EVGA GTX 570 SLI 8GB Corsair XMS 
Hard DriveOSMonitorKeyboard
Crucial C300 64GB, WD Caviar Black 1TB, F4 2TB x2 Windows 7 Ultimate 64-bit SP1 Hanns·G 28" LCD @ 1920x1200 Generic, crappy membrane 
PowerCaseMouse
Antec HCP-1200 Thermaltake Armor VA8000 Logitech G500 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › A Guide to Bits and Bytes.