Data size is 2048B and header size is 20B.
so total size of datagram is 2068B.
MTU size is 1024B it includes 14B header and 20B ip header .so allowable data size is 1024-14-20=990B.
2048B data is passed through 990B MTU data must be fragmented.and fragmented chunks are 984,984,80B.
and offset values are (0-122) (123-245) (246-255).
2nd MTU size is 512B it includes 8Bheader and 20B ip header.data size is 512-8-20=484B.
if 984B is passed through MTU data must be fragmented.chunks are 480,480,24B
offset values are (256-315) (316-375) (376-378).
2nd 984B also fragmented 480,480,24B.
offset values are (379-438) (439-498) (499-501).
last 80B if passed no fragmentation .offset is (502-509).
so total fragments are 9