Previous | Next --- Slide 23 of 34
Back to Lecture Thumbnails
abattagl

The error code is put at the end for convenience.

dyc

The Error Code appended to the end of the payload is used as a check to ensure that the entire packet was transmitted properly. One example of a type of error code is a checksum, which is a function which takes in the payload data as an input and returns some bytes depending on the input. When the packet is received, the receiver can recompute the checksum from the payload and compare it to the errorcode that was received to see if any data could have been altered.