2019.9.17 users to access Web Site

1, the user enters a URL (Uniform Resource Locator) as user input http://www.joes-hardware.com:80/tools.html in the browser
if the browser has a record, DNS resolution that ended
2, the next host Find local / etc / hosts file, if there are hosts, rendering is completed.
3. If you do not hit, that would go to the local host cache server, the server in general, from the city where we are not
very far, 80% of general access will end here.
4, if there is no local cache server, that server will go to the local cache. "" Root domain.
5, do not know the root domain www.joes-hardware.com, it will go to the cache server ".com" top-level domain
6, the cache server will then look for the top-level domain two domain "joes-hardware.com"
. 7, after the look secondary domains, secondary domains cache server will look www.joes-hardware.com
. 8, the cache server domain name to find www.joes-hardware.com finally obtain ip address
-------- -------------------------------------------------- ----------------
10, the server requires the client to connect via 3-way handshake, the client sends SYN = 1 (synchronous request pointer), seq = x (SEQ ID NO) which is the first handshake,
second handshake is the server to the client to send SYN = 1, ACK = 1 to confirm my request to establish a connection with you, and send your seq = y of (serial number) and ack = x + 1
third handshake is a client to the server sends an acknowledgment to confirm that you establish a connection with me, and send ACK = 1 (confirm pointer) seq = x + 1 ack = y + 1, after the client and server can perform data transmission.

11, then the client sends a HTTP request THHPGET header information header contains information such as setting a long connection keep-alive
page whether to compress information, the server may need to click the verification message, including whether to allow the client to log in.

12, the server reads the HTTP response to the client information including web server name, page name and version information,
and users want the server to browser pages that allow clients to download locally.

13, and then the client on the web server will be translated into beautiful html page with a browser.

14, if the client wants to close tcp need to go through the four-way handshake.
-------------------------------------------------- -----------------------------------------
15, four off the TCP, The first client sends a FIN = 1 (end pointer) and seq = u (sequence number) to the server requesting to disconnect
the second server transmits ACK = 1 (acknowledgment pointer), seq = v (SEQ ID NO), ack = u + 1 In this case the client to
terminate a wait state, the third server transmits FIN = 1 (end pointer) to the client, ACK = 1 (acknowledgment pointer)
SEQ = W, ACK = u + 1 in which the server waiting for the state to close state, the client waits for the termination of the state 2.
The fourth is the client sends ACK = 1 (acknowledgment pointer) seq = u + 1 ack = w + 1 In this case the client status of the life cycle of 2 times the maximum latency.
Always disconnect from the server than the server earlier.

 

Guess you like

Origin www.cnblogs.com/otherwise/p/11543253.html
Recommended