4,766 views
1 votes
1 votes
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

0 votes
0 votes

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 votes
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$

Related questions

1 votes
1 votes
0 answers
4
Na462 asked Jan 12, 2019
858 views