当前位置:网站首页>Please describe the whole process from entering a URL in the browser to rendering the page.
Please describe the whole process from entering a URL in the browser to rendering the page.
2022-06-22 20:02:00 【51CTO】
I believe many front-end programmers have encountered this problem during the interview , The first time I encountered this problem, I was ignorant , I was unprepared to talk nonsense , Naturally, the interview is cold , I have learned this piece recently , Make a record here ~
Overall process :

- If URL Contains domain names , The browser connects to DNS( Domain name server ), Find the domain name IP Address ;
- web The browser connects to the corresponding web The server , issue http request , What you want ;(TCP Three handshakes )
- web The server checks whether the requested resource exists , To be is to return , Returns if it does not exist 404;
- web The browser receives the resource and closes the connection ;(TCP Four waves )
- The browser parses the entire page , And check for other resources needed , Such as the picture ;
- Keep sending out http request , Request corresponding resources ;
- All resources requested , The page is completely displayed .
Key content
DNS:Domain Name Service Domain name service , Resolve the domain name to ip, This process involves CDN, I will learn in detail later CDN.
TCP/IP Overall process of the agreement :

application layer : Application specific protocols , Such as WWW、 E-mail 、FTP etc. .
TCP Transport control layer :Transmission Control Protocol Transport control layer protocol ,TCP It's connection-oriented , Reliable byte stream transport service .TCP Use the port number to direct packets to a specific application on the computer .
IP The network layer :Internet Protocol Network layer protocol ,IP It's an unreliable , No connection protocol .IP Pass the packet through IP Address transfer to the specified computer .
Hardware layer : Convert binary data into photoelectric signals .
边栏推荐
- The array objects are filled in one by one according to the ID (fill Arr1 into arr2)
- 数字经济加速落地,能为中小企业带来什么?
- 哈夫曼树(C语言)
- Metu stability and operation and maintenance guarantee scheme
- 谷歌| ICML 2022: 深度强化学习中的稀疏训练状态
- 树、森林及二叉树的相互转换
- 北京大学|通过对比学习实现离线元强化学习的鲁棒任务表示
- 斐波那契查找(黄金分割)
- 二叉排序树的查找、插入和删除
- [deeply understand tcapulusdb technology] cluster management operation
猜你喜欢

Compilation error: /usr/bin/ld: /usr/local/lib/libgflags a(gflags.cc.o): relocation R_ X86_ 64_ 32S against `. rodata‘

关键路径

1.3----- simple setting of 3D slicing software

iVX无代码挑战五秒游戏制作

程序员应该怎么查日期

【深入理解TcaplusDB技术】入门TcaplusDB 问题汇总

【深入理解TcaplusDB技术】入门Tcaplus-JDBC开发

使用 qrcodejs2 生成二维码详细API和参数

请你描述下从浏览器上输入一个url到呈现出页面的整个过程。

Tree, forest and transformation of binary tree
随机推荐
谷歌| ICML 2022: 深度强化学习中的稀疏训练状态
How to judge whether text is an array in the slot
1.2----- mechanical design tools (CAD software) and hardware design tools (EDA software) and comparison
漫话Redis源码之一百二十一
lua--数据类型、变量、循环、函数、运算符的使用
插值查找和折半(二分)查找
关键路径
matlab调用API
散列表(哈希表)
Mysql database knowledge points (III)
Velocity syntax
【深入理解TcaplusDB技术】TcaplusDB新增机型
【深入理解TcaplusDB技术】集群管理操作
Topological sorting
图的存储结构(邻接矩阵)
[in depth understanding of tcapulusdb technology] tcapulusdb regular documents
【深入理解TcaplusDB技术】TcaplusDB事务管理——错误排查
AB打包有的Shader没有触发IPreprocessShaders的回调
Follow up course supplement of little turtle teacher "take you to learn C and take you to fly"
二叉排序树的查找、插入和删除