The Gateway to Computer Science Excellence

+14 votes

Best answer

+3

hlen is of 4 bits and it can represent a maximum value of 15. while the header length can g upto 60. so we use a scale factor of 4. so now 4 bits can represent upto 15*4 = 60. so if the value of hlen is 5 then it means it is actually representing 5*4 = 20. hope that clears!

+1

@ayush palak @Raju Kalagoni But shouldn't data be a multiple of 8? Here data size is 180, which is not a multiple of 8.

0

@shraddha priya, data need not be a multiple of 8. it doesn't make sense to have data always in multiple of 8. We should always be in a position to send data across network either in multiple of 8 or not.

0

@shraddha priya Data should be a multiple of 8 in cases where there are more than 1 fragmented packets and all the packets except the last packet must be a multiple of 8. If there is only one packet or the packet is last fragmented packet then it need not be a multiple of 8.

+4 votes

Option-C

Total Length=200

Data feild excluding header=200-20=180(0---179)

No of byte ahead from this packet is=100*8=800

so last byte =800+179=979

Total Length=200

Data feild excluding header=200-20=180(0---179)

No of byte ahead from this packet is=100*8=800

so last byte =800+179=979

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.5k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.4k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.2k
- Non GATE 1.4k
- Others 1.4k
- Admissions 595
- Exam Queries 573
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 18

50,737 questions

57,275 answers

198,154 comments

104,820 users