7,262 views
1 1 vote
Suppose you needed to use HTTP to download a webpage with three embedded images. The total number messages saved between the client and server starting from initiates TCP connection to receive the third object and close connection when using persistent HTTP without pipelining instead of non-persistent HTTP are?

2 Answers

1 1 vote

PERSISTENT

Connection establishment---2

3 embedded images & ack--6

connection termination-------2

TOTAL MESSAGES = 10

NON-PERSISTENT

for 1st image-

Connection establishment---2

1 embedded images & ack--2

connection termination-------2

for 2nd image-

Connection establishment---2

1 embedded images & ack--2

connection termination-------2

for 3rd image-

Connection establishment---2

1 embedded images & ack--2

connection termination-------2

TOTAL MESSAGES = 18

MESSAGE SAVED = 18-10= 8

0 0 votes

Ref : http://blog.catchpoint.com/2010/09/17/anatomyhttp/

Persistent http means, following events will occur while loading the page:

DNS resolution,

1 connection request message,

2 messages(request and load per object),

1 connection close message.

So, starting from TCP connection establishment: $1 + 2+2+2+ 1 = 8 messages$

Position:
Show:

Related questions

1 1 vote
0 0 answers
2.2k
2.2k views
Gaurangi Katiyar asked Dec 26, 2018
2,197 views
Consider A lives in Delhi, connected to the internet via a 100 Mbps connection retrieve a 250 KB webpage from server in Chennai where page contain 3 images of 500 KB each...
0 0 votes
0 0 answers
1.5k
1.5k views
shivajikobardan asked May 31, 2022
1,544 views
You don’t need to read the whole question for answering. Just tell me how non persistent parallel connections work with a figure. The figure that is found in internet for...
0 0 votes
1 1 answer
1.1k
1.1k views
atulcse asked Nov 14, 2021
1,096 views
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 m...
1 1 vote
0 0 answers
1.3k
1.3k views
Na462 asked Jan 12, 2019
1,314 views