how does http non persistent (parallel and serial) connections work?
This figure is the one given in not my textbook mentioned in syllabus but the local author book that many teachers use to follow while checking exam papers. If you don’t write according to what is written in these books, they won’t even give you 0.001 marks. So I want to learn this figure rather than others.
Here -> first RTT for starting TCP connection, -> second for requesting the base file with elements not loaded.
Why are multiple objects being received from just 1 request-response RTT? Should not just 1 object be received from it? I am assuming that one RTT is to establish TCP connection yet again and another RTT is to request and get response. But why are there multiple objects being received in a single request response RTT, I don’t get that and that’s why the confusion for. How does non persistent serial http connections work? (the slides that I’ve used are ambiguous so I am asking this question)
You can ignore the rest part of the question if you have answer to this already. It is all my unorganized thoughts about this topic, my hypothesis of how they should work etc.
My attempt at how non persistent parallel connections should work-: I made this figure how I think non persistent parallel connection should be, can you verify it and if wrong help me make a new one? https://imgur.com/a/hnsTz2R
Handmade figure is below which I hope is more clearer-: https://imgur.com/a/6AFoCkV
explanations of this figure-:
1) initiate tcp connection for base file RTT happens
2) request-response RTT for base file happens
3) initiate tcp connection for element1 as soon as the base file RTT completes, then as soon as connection is set up, send request for element1-> then its response comes after some times.
4) initiate tcp connection for element2 as soon as tcp connection initiation for element1 starts , subsequently, send request for element2-> then its response comes.
5)then start closing tcp connections for base file, element1, then element2 consecutively.
HTTP Definitive guide figure discussion-: What does connect-1 means in this figure below? Does it mean just starting the connection? Why is it not including the terminating of connection? Are we ignoring end of connection for each request-response in parallel connection?(If you watch the serial connection, it is ignoring tcp connection termination even in serial connections) Source-: HTTP the definitive guide. Both of the below figures I am assuming to be non persistent connections. https://imgur.com/a/4QL4IZm
How non persistent(serial) connections should be working-:
But Isn’t this how non persistent(serial) connections work? -> tcp connection establishment 1 RTT -> request response A 1 RTT -> tcp connection close 1 RTT
Now for request response B -> tcp connection establishment 1 RTT -> request response B 1 RTT -> tcp connection close 1 RTT
A source that confirms this-: https://imgur.com ...