Q.1. For the IP header of a data packet shown below, find the following parameters.
(1) IP version number
(2) Header length
(3) Total length
(4) Identification
(5) a. Can the data be fragmented during transmission?
b. Is there any more fragments of the data?
(6) Fragment offset
(7) Total time to live
(8) Protocol number
(9) Source IP address
(10) Destination IP address
0 1 0 0 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 1 |
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 |
0 0 0 1 1 0 1 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 |
0 0 0 1 0 1 1 0 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 0 0 0 0 1 1 0 1 0 |
0 0 0 1 1 1 0 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 1 0 1 0 |
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
The IPv4 header maybe 20 to 60 bytes and it is determined by the header length field.
1. IP Version number = 0100
2. Header length = 1011
3. Total length = 0000 0001 1001 0101
4. Identification = 0000 0000 0000 0010
5. (a). Can the data be fragmented during transmission = Yes
5. (b). Is there any more fragment of data =
Flag bits are = 011
The first bit is reserved for future and the last two bits are used to determine the data is fragmented or not. If fragmented then is it the last fragment or not. The above combination is showing that the data is not fragment and this fragment is not the last fragment. So, this combination is not possible.
6. Fragment offset = 0 0000 0000 0011
7. Total time to live = 0001 1010
8. Protocol number = 0000 0100
9. Source IP address = 0001 0110 0001 0011 0001 0010 0001 1010
10. Destination IP address = 0001 1100 0001 1001 0010 1000 0001 1010
Get Answers For Free
Most questions answered within 1 hours.