Hamming code implementation for network error correction