CheckSum Part-2

Duration: 7 min

This video lesson is available to enrolled students.

Enroll to watch — Computer Networks

AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture segment introduces the Checksum protocol for error detection in data transmission. The instructor begins by defining checksum as a method where the sender transmits data along with its negative sum, allowing the receiver to verify integrity by ensuring the total equals zero. The presentation then transitions to One's Complement arithmetic, addressing limitations of simple summation for larger data words. Detailed diagrams illustrate the sender and receiver processes, including binary conversions, bit wrapping, and complementing operations to generate a checksum value of 9 from an initial sum of 36.

Chapters

  1. 0:00 2:00 00:00-02:00

    The instructor introduces the fundamental Checksum protocol using a slide with bullet points and mathematical examples. He illustrates sending a list of numbers (7, 11, 12, 0, 6) with their sum of 36. The slide updates to show sending the negative complement, -36, so the receiver can verify data integrity by checking if the total sum equals zero. The instructor uses a pen to point at specific numbers and circles them while explaining the process, emphasizing that if the receiver adds all received numbers including the checksum and the total is zero, no error is assumed.

  2. 2:00 5:00 02:00-05:00

    The lecture shifts to One's Complement arithmetic as a solution for handling data larger than 4-bit words. The slides detail how negative numbers are represented by inverting bits and how extra leftmost bits must be added to the rightmost bits (wrapping). Visual examples demonstrate the sender and receiver sites calculating sums, wrapping values, and generating checksums using this method. Key on-screen text includes 'Inverting all bits (changing a 0 to a 1 and a 1 to a 0)' and 'subtracting the number from 2^n - 1', establishing the rules for binary arithmetic in this context.

  3. 5:00 7:00 05:00-07:00

    A network diagram illustrates the complete checksum calculation process divided into 'Sender site' and 'Receiver site' columns. At the sender, data values 7, 11, 12, 0, and 6 are summed to 36. A yellow box labeled 'Details of wrapping and complementing' shows the binary conversion to find a checksum of 9. The transmitted packet is labeled '7, 11, 12, 0, 6, 9'. The receiver sums the received packet including the checksum, resulting in 45, which wraps to 15 and finally yields a check value of 0. Yellow boxes at the bottom show binary conversions and wrapping details for both sites.

The video progresses from basic summation to complex binary arithmetic for error detection. Initially, the instructor establishes that a checksum involves sending data plus its negative sum to verify integrity at zero. However, this simple method has drawbacks for larger words, leading to the introduction of One's Complement arithmetic. This technique uses bit inversion and wrapping for negative number representation. The final diagrams concretely demonstrate the workflow: sender sums data (36), wraps and complements to generate checksum (9), transmits packet, receiver sums all values including checksum (45), wraps result (15), and complements to verify zero. This progression highlights the necessity of specific binary rules for reliable data transmission.

Loading lesson…