当前位置:网站首页>Detailed explanation of the process after the browser enters the domain name and web address
Detailed explanation of the process after the browser enters the domain name and web address
2022-06-24 04:59:00 【Zeng Gaofei】
From the perspective of system network, we analyze the process after entering the domain name and web address in the browser :
1、 Client browser through DNS Resolved to https://www.fgba.net/,IP The address is 202.108.22.5, Through this IP Address to find the path from the client to the server . The client browser initiates a HTTP Conversation to 202.108.22.5, And then through TCP To encapsulate data packets , Input to network layer . 2、 In the client's transport layer , hold HTTP The session request is divided into message segments , Add source and destination ports , If the server uses 80 Port listens for client requests , The client is randomly selected by the system as 5000, Exchange with the server , The server returns the corresponding request to the client 5000 port . And then use IP Layer of IP Address search destination . 3、 The network layer of the client does not care about the application layer or the transport layer , The main task is to find out how to get to the server by looking up the routing table , It may pass through multiple routers , These are all the work done by routers , It's just to find the routing table to decide which path to go to the server . 4、 The link layer of the client , Packets are sent to the router through the link layer , Find a given... By neighbor protocol IP Address of the MAC Address , And then send ARP Request to find the destination address , If you get a response, you can use ARP Of requests to answer exchanged IP Packets can now be transmitted , And then send IP Packets arrive at the address of the server .
Sequence of events : (1) The browser gets the input www.fgba.net (2) Browser direction DNS Request parsing www.fgba.net Of IP Address (3) The domain name system DNS Analysis of Baidu server IP Address ( Detailed introduction DNS)- Go out through the gateway (4) The browser is set up with the server TCP Connect ( Default port number 80) (5) The browser sends out HTTP request , Request Baidu home page (6) Server pass HTTP Response to send home file to browser (7) TCP Connection release (8) The browser will parse the homepage file , And will Web The page shows the user .
The agreement involved : (1) application layer :HTTP(WWW access protocol ),DNS( Domain name resolution service ) DNS For the purpose of resolving domain names IP, adopt IP Find the server path , The client initiates... To the server HTTP conversation , Then through the transport layer TCP The protocol encapsulates the packets , stay TCP Based on the protocol . (2) Transport layer :TCP( by HTTP Provide reliable data transmission ),UDP(DNS Use UDP transmission ),HTTP The session is divided into message segments , Add source 、 Destination port ;TCP The agreement carries out the main work . (3) The network layer :IP(IP Packet transmission and routing ),ICMP( Provide error detection during network transmission ),ARP( Set the default gateway of this machine IP Address mapping to physical MAC Address ) Routing packets ,IP The agreement carries out the main work , Reliable transmission of adjacent nodes ,ARP The agreement will IP Address to MAC Address .
Simple understanding : Domain name resolution --> launch TCP Of 3 The second handshake --> establish TCP Initiate... After connecting http request --> Server response http request , The browser gets html Code --> Browser parsing html Code , And ask for html Resources in the code ( Such as js、css、 Pictures, etc ) --> The browser renders the page to the user .
边栏推荐
- How does the VPS server upload data? Is the VPS server free to use?
- How RedHat 8 checks whether the port is connected
- Bi-sql distinct
- Three methods of local storage
- 查找GBase 8c数据库当前索引?
- Verifying data models in golang
- The easyplayer player displays compileerror:webassembly Reason for instance() and its solution
- 4G industrial VPN router
- Introduction to the "penetration foundation" cobalt strike Foundation_ Cobalt strike linkage msfconsole
- Black horse programmer machine learning handout: preliminary use of linear regression API
猜你喜欢

Idea创建Servlet 后访问报404问题

MySQL - SQL execution process

梯度下降法介紹-黑馬程序員機器學習講義

Let children learn the application essence of steam Education

Introduction à la méthode de descente par Gradient - document d'apprentissage automatique pour les programmeurs de chevaux noirs

Loss and optimization of linear regression, machine learning to predict house prices

Analyzing the superiority of humanoid robot in the post human era

CTF learning notes 17:iwesec file upload vulnerability-02 file name filtering bypass

Leetcode (question 2) - adding two numbers

CTF learning notes 18:iwesec file upload vulnerability-03-content-type filtering bypass
随机推荐
Database answers build standard, answer as required
Analyzing the superiority of humanoid robot in the post human era
011_ Cascader cascade selector
Confluence data center version is nearing its lifecycle
How to enlarge the ECS page? How to select ECS instance specifications?
What is Ping? How can the server disable Ping?
SAP MTS/ATO/MTO/ETO专题之八:ATO模式2 D+空模式策略用85
Find the current index of gbase 8C database?
How to build a website for ECS is the price of ECS very expensive
Jimureport building block report - expression introduction
Advanced authentication of uni app [Day12]
IP and traffic reconciliation tool networktrafficview
How to install software on ECs is it expensive to rent ECS
Before creating an image, it is recommended to execute the following code to purify the image as an administrator
What are the disadvantages of the free IP address replacement tool?
Powerbi - for you who are learning
Idea creates a servlet and accesses the 404 message
Spirit breath development log (15)
Pg-pool-ii read / write separation experience
Real time monitoring: system and application level real-time monitoring based on flow computing Oceanus (Flink)