# Networking Questions and Answers – IP Datagram Packet

«
»

This set of Network Security Questions and Answers for experienced people focuses on “IP Datagram Packet”.

1. An IP packet has arrived with the first 8 bits as 01000010. What is the version?
a) 3
b) 4
c) 5
d) 6

Explanation: The first 4-bits show the version i.e. 0100 -> version 4.

2. An IP packet has arrived with the first 8 bits as 01000010. What is the header length?
a) 4
b) 8
c) 12
d) 16

Explanation: The right 4-bits multiplied by 4 is the header length (0010=2).
2 x 4 = 8.

3. In an IP packet, the value of HLEN is 1000 in binary. How many bytes of options are being carried by this packet?
a) 16
b) 64
c) 32
d) 8

Explanation: HLEN = 1000 = 8.
8 x 4 = 32 bytes.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

4. In an IP packet, the value of HLEN is 5_16 and the value of the total length field is 0028_16. How many bytes of data are being carried by this packet?
a) 10
b) 40
c) 60
d) 20

Explanation: Total number of bytes in the header = 5 x 4 = 20 bytes.
Total length = 0028_16 = 40 bytes.
Data carried by the packet = (40 – 20) = 20 bytes.

5. In an IP packet, the value of HLEN is 516 and the value of the total length field is 002816.What is the efficiency of this datagram?
a) 80%
b) 50%
c) 66%
d) 75%

Explanation: Total number of bytes in the header = 5 x 4 = 20 bytes.
Total length = 0028_16 = 40 bytes.
Data carried by the packet = (40 – 20) = 20 bytes.
Efficiency = payload length / total length = 20/40= 50%.

6. An IP packet has arrived with the first few hexadecimal digits as shown below:
45000028000100000102 . . .
How many hops can this packet travel before being dropped?
a) 2
b) 5
c) 3
d) 1

Explanation: None.

7. An IP packet has arrived with the first few hexadecimal digits as shown below:
45000028000100000102 . . .
The data belong to what upper layer protocol?
a) IGMP
b) UDP
c) OSPF
d) TCP

Explanation: TTL = 01, the packet can travel only one hop.
Protocol field = 02 means IGMP.

8. A packet has arrived in which the offset value is 100. What is the number of the first byte?
a) 400
b) 800
c) 200
d) 780

Explanation: TTL = 01, the packet can travel only one hop.
The number of the first byte is 100 x 8 = 800.
The first byte number is 800.

9. A packet has arrived in which the offset value is 100, the value of HLEN is 5 and the value of the total length field is 100. What is the number of the first byte?
a) 800
b) 880
c) 400
d) 780

Explanation: Total data bytes = total length – header length = 80 bytes in this datagram.
First byte is 800.

10. A packet has arrived in which the offset value is 100, the value of HLEN is 5 and the value of the total length field is 100. What is the number of the last byte
a) 880
b) 879
c) 881
d) 801

Explanation: Total data bytes = total length – header length = 80 bytes in this datagram.
Last byte is therefore 879.

Sanfoundry Global Education & Learning Series – Cryptography and Network Security.

To practice all areas of Network Security for Experienced, here is complete set of 1000+ Multiple Choice Questions and Answers.