L
L
Lankinop2022-02-12 07:31:58
Computer networks
Lankinop, 2022-02-12 07:31:58

How to make datagram fragmentation with given parameters?

Assemble a datagram from fragments with the following parameters:
-number of fragments = 4;
-total length 0..2 datagram fragments = 4092 bytes;
-total length of the last fragment = 2160 bytes;
- fragment header lengths = 20 bytes;
-fragment identifier = 1820;
- value of flag MF fragments (except the last one) = 1;
- value of the MF flag of the last fragment = 0;
- offset size = 0, 509, 1018, 1527 (fragments 0..3);
-time to live = 212 seconds;
-No upper layer protocol = 6.
Additional options:
-router reduces time to live by 2 seconds.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Griboks, 2022-02-12
@Griboks

Glue the data together and then create your own container.
For example, in your case it might look like this: own mac + destination mac + 0x08 0x00 + data 1 + data 2 + data 3 + data 4 + CRC.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question