What happens when the browser window enters the URL (http full request)

Source: Internet
Author: User
Tags get ip domain name server browser cache

1, DNS query get IP

The input is the domain name, need to do DNS resolution to IP, the approximate process:

    • If the browser has a cache, use the browser cache directly, otherwise use the native cache, and then do not have to use the host

    • If there is no local, the DNS domain name server query (of course, the middle may also be routed, there are caches, etc.), query to the corresponding IP

2. TCP/IP Request

The essence of HTTP is the tcp/ip request.

Need to know 3 handshake rules to establish a connection and four waves when disconnecting.

TCP divides HTTP long messages into short messages, and connects to the server via three handshake to reliably transmit.

3, three steps to shake hands (abstract pie)
    • Client: Hello, are you server?

    • Service side: Hello, I am server, are you a client?

    • Client: Yes, I am client

Once the connection is established, the data is then formally transferred.

Then, until you disconnect, you need to wave four times.

4, four waves of steps (abstract pie)
    • Active side: I have closed the active channel to your side, can only passively receive

    • Passive side: Receive channel shutdown information

    • Passive side: Well, I'm telling you, my side is closed to your Active channel.

    • Active: The last data received, then the two sides can not communicate

What happens when the browser window enters the URL (http full request)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.