Example of encoding process for 5 bit state and 5 packets, N = 2 size ...

Responsive image
source