Menu
Coddy logo textTech

Bits on a Wire

Lesson 5 of 32 in Coddy's The OSI Model course.

Layer 1 moves raw bits over a physical medium: voltage on copper, light in fiber, or waves over radio (Wi-Fi). It knows nothing about addresses or messages, only ones and zeros per second.

That "per second" is where units bite. Link speeds are measured in bits per second (Mbps, Gbps), but file sizes in bytes (MB, GB). One byte is 8 bits, so a 1 Gbps link moves 1000 Mbps, which is only 125 megabytes each second.

Mixing the two up is the classic reason downloads seem "8 times slower" than the plan promised.

challenge icon

Challenge

Beginner

Your ISP sells a 1 Gbps line. Print two lines: the speed in Mbps, then the maximum download rate in megabytes per second.

Expected output:

1000
125

Try it yourself

Terminal

All lessons in The OSI Model

Practice on your own: Terminal playground