当前位置:网站首页>端口,域名,协议。
端口,域名,协议。
2022-07-05 02:43:00 【13少啊】
一.域名
每个域名都对应这其的IP地址,从左到右为顶级域名,一级域名,二级域名.....,两者间用点隔开。通过域名搜索网址,其实质也是通过IP地址进行搜寻。
例如:
你可以在搜素百度的时候,直接搜索www.baidu.com进行搜索
也可以输入:
这样两个
www.baidu.com
14.215.177.39
答案肯定是必然的,www.baidu.com更容易记
二.端口
逻辑意义上的端口,一般是指TCP/IP协议中的端口,端口号范围是从0到65535,比如用于浏览网页服务的80端口,用于FTP服务的21端口等等。
三.协议
协议:是网络中计算机或设备之间进行通信的一系列的集合。
常见协议有:
HTTP协议代理服务器常用端口号:80/8080/3128/9098
...... 等一系列的协议
四.http://baidu.com:80
1.http 协议
2.baidu.com 域名
3.80 端口
五.Tcp三次握手和四次挥手
(1)三次握手
举个简单例子
客户端:
你听的到吗?
服务器:
我听的到,你呢?
客户端:
我听的到
(2)四次挥手
客户端:
客户端向服务器发送FIN包,需要断开连接。
服务器:
收到你想断开连接的请求, 向客户端发送一个ACK,不要发送请求, 但是还有数据没处理。
服务器:
服务端处理完数据之后,向客户端发送一个FIN,表示服务端可以断开连接。
客户端:
接收到服务器的FIN包之后,向客户端发送一个ACK,表示客户端也可以断开连接了。
(3)为什么握手需要三次,挥手需要四次呢?
三次握手:三次握手是为了TCP建立连接的。
四次挥手:为了断开连接,为了确保结束数据的发送,和接收数据。
边栏推荐
- [機緣參悟-38]:鬼穀子-第五飛箝篇 - 警示之一:有一種殺稱為“捧殺”
- Elfk deployment
- Chinese natural language processing, medical, legal and other public data sets, sorting and sharing
- Unpool(nn.MaxUnpool2d)
- Can you really learn 3DMAX modeling by self-study?
- openresty ngx_lua变量操作
- Structure of ViewModel
- Using druid to connect to MySQL database reports the wrong type
- Uniapp navigateto jump failure
- Erreur de type de datagramme MySQL en utilisant Druid
猜你喜欢
Pytest (4) - test case execution sequence
Moco V2 literature research [self supervised learning]
Introduce reflow & repaint, and how to optimize it?
Sqoop安装
Yolov5 model training and detection
[download white paper] does your customer relationship management (CRM) really "manage" customers?
Watch the online press conference of tdengine community heroes and listen to TD hero talk about the legend of developers
LeetCode 314. Binary tree vertical order traversal - Binary Tree Series Question 6
A label making navigation bar
【LeetCode】110. Balanced binary tree (2 brushes of wrong questions)
随机推荐
Design and implementation of kindergarten management system
Linux安装Redis
openresty ngx_ Lua variable operation
SFTP cannot connect to the server # yyds dry goods inventory #
Design and implementation of high availability website architecture
Character painting, I use characters to draw a Bing Dwen Dwen
8. Commodity management - commodity classification
Eight days of learning C language - while loop (embedded) (single chip microcomputer)
Single line function*
Openresty ngx Lua Execution stage
Avoid material "minefields"! Play with super high conversion rate
Exploration of short text analysis in the field of medical and health (II)
Action News
Flume配置4——自定义MYSQLSource
Azkaban实战
Watch the online press conference of tdengine community heroes and listen to TD hero talk about the legend of developers
Voice chip wt2003h4 B008 single chip to realize the quick design of intelligent doorbell scheme
【LeetCode】98. Verify the binary search tree (2 brushes of wrong questions)
Which common ports should the server open
Hmi-32- [motion mode] add light panel and basic information column