Signals & Bit Encoding
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
Every higher-layer decision ultimately rides on voltage or light transitions that a physical layer turns into bits. Without understanding how a receiver samples those transitions, an unexplained checksum error looks like magic.
On the wire
A transmitter maps each bit to a symbol: NRZ holds a level, Manchester encodes a bit as a mid-bit transition, and modern Ethernet uses PAM-4 to send two bits per symbol. The receiver recovers a clock from those transitions and samples at the symbol center, while the preamble and SFD mark where a frame starts.
When it breaks
Excessive intersymbol interference smears adjacent symbols so the sampler reads the wrong bit, which surfaces as a CRC error rather than a clean bad-bit signal. A clock that drifts past the sampling margin flips long runs of bits, which is why long identical runs need scrambling or encoding.
Signal & bit lab
Click bits to change the waveform; adjust the channel to see whether the receiver can keep up.
Nyquist ceiling = 2B symbols/s
Shannon capacity = B log2(1 + S/N)
The requested bit rate fits below capacity, so mid-bit samples land on the correct level.