Example of Fragmentation

Duration: 5 min

This video lesson is available to enrolled students.

Enroll to watch — ISRO Scientist/Engineer 'SC'

AI Summary

An AI-generated summary of this video lecture.

The video lecture focuses on IP fragmentation using a specific numerical example provided by the instructor, Sanchit Jain. The scenario involves Host A in Network X with an MTU of 520 bytes sending a message to Host B in Network Y with an MTU of 200 bytes. The core concept demonstrated is how a large IP datagram is broken down into smaller fragments to traverse a network with a smaller Maximum Transmission Unit (MTU). The lecture details the calculation of fragment sizes, offsets, and the setting of the More Fragments (MF) bit for each resulting packet, ensuring students understand the reassembly process at the destination.

Chapters

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

    The instructor sets up the problem statement visible on the screen: "Consider host A is present in network X having MTU = 520 bytes. There is another host B present in network Y having MTU = 200 bytes." He draws two circles to represent the networks and labels them X and Y. Inside Network X, he draws a rectangle representing the message to be sent. He annotates this rectangle with "20" for the header and "500" for the data payload, totaling 520 bytes. This establishes the initial datagram size before fragmentation occurs, highlighting that the entire message fits within Network X's MTU but will face issues in Network Y.

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

    The instructor begins the fragmentation process. Since the message size (520 bytes) exceeds the MTU of Network Y (200 bytes), he draws three separate rectangles to represent the fragments. He calculates the data payload for each fragment. The first two fragments carry 176 bytes of data each (20 header + 176 data = 196 bytes total). The third fragment carries the remaining 148 bytes (20 header + 148 data = 168 bytes total). He writes down the offset calculations: 0 for the first, 176/8 = 22 for the second, and 352/8 = 44 for the third. He also marks the MF bit as 1 for the first two fragments and 0 for the last one, indicating the end of the datagram. He explicitly writes the total size of the original message as 520 bytes and calculates the total size of fragments: 196 + 196 + 168 = 560 bytes, showing the overhead added by headers.

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

    The instructor points to the final calculations on the whiteboard, specifically the offset values (0, 22, 44) and the MF bits. He summarizes the total size of the fragmented packets compared to the original. The visual focus is on the completed diagram showing the three fragments with their respective headers, data sizes, and offset values clearly written next to them. He concludes the example by reinforcing how the destination host uses these offsets to reassemble the original 500 bytes of data.

This lecture effectively demonstrates the mechanics of IP fragmentation. By working through a concrete example with specific byte counts, the instructor clarifies how the offset field is calculated (data size divided by 8) and how the MF bit signals the continuation or termination of a fragmented datagram. The step-by-step breakdown from the initial 520-byte message to three smaller fragments (196, 196, 168 bytes) provides a clear template for solving similar networking problems, emphasizing the importance of the 8-byte alignment rule for fragment offsets.