Question Bank - Computer Networks

Here's the question bank on all the computer networks topics.

An IP packet has arrived with the first 8 bits as 0100 0010. Which of the following is correct ?

A.
The number of hops this packet can travel is 2
B.
The total number of bytes in header is 16 bytes.
C.
The upper layer protocol is ICMP
D.
The receiver rejects the packet

Solution:

Answer: Option 4CONCEPTMinimum header size of IPv4 = 20 byteMaximum header size of IPv4 = 60 byteHeader length field in the IPv4 header is 4 bits.Maximum possible value (1111) = 15The scaling factor of \(\frac{{60}}{{15}} = 4\) is introducedEXPLANATION: IP header: But the first 8 bits in the Question are 0100 0010.The first 4 bits indicate the version which is IPv4 (0100)Now the next four bit indicates Header length (bits decimal value × 4) which is 2 × 4 = 8 byteswhich is not possible since the minimum header length for IPv4 is 20 bytes.Hence Receiver will reject the packet.Therefore option 4 is the correct answer.

For more questions,

Click Here

Download Gyanm App

free current affairs for competitive exams

Scan QR code to download our App for
more exam-oriented questions

free current affairs for competitive exams

OR
To get link to download app

Thank you! Your submission has been received. You will get the pdf soon. Call us if you have any question: 9117343434
Oops! Something went wrong while submitting the form.