Summary of Vue front-end interview questions (23) How to understand what happens from the URL to the page loading? Detailed

URL to page loading

1. DNS resolution
2. TPS resolution (three-way handshake)
3. Send HTTP request
4. The server processes the data that needs to be returned
5. The browser resolves the page
6. The link ends (waves four times)

Here is generally derived server status and the principle of three-way handshake and four-wave hands

How to understand the three-way handshake

The first handshake The
client sends a link request to the server. The
second handshake.
If the server agrees to the connection, it sends a response request. The
third handshake.
After the client receives the response of the link agreement, it also sends a confirmation message to the server

How to understand four waves

Waving for the first time, the
client thinks that the data has been sent, it must first send a release request state from the server,
wave the second time the
server receives the release request state sent by the client, it will enter the ready-to-release state,
wave the third time the
server sends to the client After finishing all the requests, send a release request to the client and
wave for the fourth time.
After receiving the release request, the client sends a confirmation request to the server to release the link.

Guess you like

Origin blog.csdn.net/Rick_and_mode/article/details/108647597