Home

TCP experiment

TCP Even Parity

A parity-checking workflow where the client can append a parity bit before sending a bitstring and the server validates whether the received sequence satisfies even parity.

Client feature

Parity-bit append

The client can generate the extra bit needed to force an even number of ones.

Server role

Validation endpoint

The server accepts binary payloads and checks whether parity is valid.

Local run commands

python projects/tcp-even-parity/server.py
python projects/tcp-even-parity/client.py --data 101010 --append-parity-bit

Use cases

  • Introduce bit-level validation before more advanced checks such as CRC.
  • Compare client-side preparation with server-side verification.
  • Pair naturally with the browser parity demo on the homepage.