当前位置:网站首页>TCP/IP协议
TCP/IP协议
2022-07-06 08:32:00 【学编程的小渣渣a】
TCP/IP——高并发负载均衡 集群
OSI
open system interconnect开放式系统互联模型,此模型把网络通信工作分为七层,物理层、数据链路层、网络层、会话层、表示层、应用层(理论上的参考)。
OSI 7层参考模型(参考、未实现)
(1)为何分层?层与层之间接口稳定,暴露接口,直接调接口,内部方法、逻辑可替换;可以解欧,若不分层欧额度较高,一改全改成本高。TCP/IP协议(定义好的 逻辑、参数、实现方法)

(2)介绍:计算机内有两大类区域程序——Linux内核kernel(版本维护)+系统后台运行的demo程序即用户空间的application程序。
(3)区别:为什么有些层次放在内核,如qq、微信、游戏传输通信数据时很多代码不需要重复开发,使用通用的资源由开发内核的人员设计好了,内核中既有规则又有资源管理以及建立连接的过程。其余的不同程序,发送数据的表示形式、可靠性、安全性是否加密在程序的个性化中去开发,即应用层。所以分类两大层次。
(4)nc:建立连接——net connect,nc中用人的方式把协议发出后,双方能通过连接传输数据,可以正确把数据请求回来,请求功能结束。
(5)每一层都有协议:应用层包含http协议、fdp协议等 。
(6)传输控制层:tcp——面向连接的,可靠的传输(常用)、udp协议。TCP的阶段:
通过三次握手建立连接,再进行数据传输,最后四次分手。
(1)实现三次握手:网络通信I/O通信是双向的,有输出就有输入,三次之后客户端与服务器端知自己的输入输出是通的。
ack:acknowledge表示接收到数据包,知道了;
连接:在双方的内存里开辟资源,切换状态,连接的过程是瞬时的数据包交互的过程;
IO模型——文件系统io、网络io
IO模型本质上:内核给程序暴露api源自socket包装
边栏推荐
- Chrome浏览器的crash问题
- MySQL learning record 07 index (simple understanding)
- Upgrade tidb operator
- sublime text中conda环境中plt.show无法弹出显示图片的问题
- China's high purity aluminum target market status and investment forecast report (2022 Edition)
- 2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
- hutool优雅解析URL链接并获取参数
- [MySQL] lock
猜你喜欢

On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
![[cloud native] teach you how to build ferry open source work order system](/img/fb/507f763791235bd00bc8201e5d7741.png)
[cloud native] teach you how to build ferry open source work order system

【刷题】牛客网面试必刷TOP101

2022.02.13 - NC002. sort

C語言雙指針——經典題型

JVM performance tuning and practical basic theory - Part 1

Deep learning: derivation of shallow neural networks and deep neural networks

优秀的软件测试人员,都具备这些能力

MySQL learning records 12jdbc operation transactions

All the ArrayList knowledge you want to know is here
随机推荐
Online yaml to CSV tool
优秀的软件测试人员,都具备这些能力
2022.02.13 - NC004. Print number of loops
Vocabulary notes for postgraduate entrance examination (3)
2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
C语言深度解剖——C语言关键字
VMware 虚拟化集群
Golang force buckle leetcode 1020 Number of enclaves
Synchronized solves problems caused by sharing
sublime text的编写程序时的Tab和空格缩进问题
查看局域网中电脑设备
visdom可视化实现与检查介绍
同一局域网的手机和电脑相互访问,IIS设置
[2022 Guangdong saim] Lagrange interpolation (multivariate function extreme value divide and conquer NTT)
Huawei cloud OBS file upload and download tool class
China's high purity aluminum target market status and investment forecast report (2022 Edition)
Leetcode question brushing (5.28) hash table
CISP-PTE实操练习讲解
MySQL learning records 12jdbc operation transactions