in Computer Networks
319 views
0 votes
0 votes
How many messages will it take to receive 3 images from a server using non-persistent HTTP?

The provided solution says that it will take 18 messages. But I’m getting 16 messages according to my following method: In total there will be 4 files to be requested (1 base page and 3 images). Each complete file transfer will take 2 messages for TCP initiation + 2 messages for file request and response = 4 messages for successful transfer of 1 file. So, in total for 4 such iterations, it’ll take 16 messages.

What is wrong with my method?
in Computer Networks
by
319 views

1 comment

It will take 16 messages only.
0
0

1 Answer

0 votes
0 votes
I think, considering the base file is wrong, please correct me if I am wrong. In a non-persistent connection for each object, we need 3 RTTs (1 RTT for connection establishment,1RTT for object transfer by req-res +1 RTT for a connection termination so a total= 3 RTT ) so in this question 3 images =3*3RTT=9RTT=>18 messages, but in this question, it is asking several messages for receiving 3 messages so we will eliminate last connection termination so total =18-2=16 messages.

Related questions