当前位置:网站首页>Tcp/ip protocol
Tcp/ip protocol
2022-07-06 08:37:00 【Learning programming a】
TCP/IP—— High concurrent load balancing colony
OSI
open system interconnect Open system interconnection model , This model divides the network communication work into seven layers , The physical layer 、 Data link layer 、 The network layer 、 The session layer 、 The presentation layer 、 application layer ( Theoretical reference ).OSI 7 Layer reference model ( Reference resources 、 Unrealized )
(1) Why layering ? The interface between layers is stable , Expose interfaces , Direct interface adjustment , Internal methods 、 Logic is replaceable ; Can understand Europe , If there is no stratification, the European quota is higher , It costs a lot to change everything .TCP/IP agreement ( Defined Logic 、 Parameters 、 Implementation method )
(2) Introduce : There are two types of regional programs in computers ——Linux kernel kernel( Version maintenance )+ The system runs in the background demo Programs are user space application Program .
(3) difference : Why are some layers placed in the kernel , Such as qq、 WeChat 、 When the game transmits communication data, many codes do not need to be developed repeatedly , The use of common resources is designed by kernel developers , There are rules, resource management and the process of establishing connections in the kernel . Other different procedures , Send a representation of data 、 reliability 、 Whether the security is encrypted Develop in the personalization of the program , The application layer . So there are two levels of classification .
(4)nc: Establishing a connection ——net connect,nc After sending the agreement in a human way , Both parties can transmit data through connection , You can correctly request the data back , The request function ends .
(5) There are agreements at every level : The application layer contains http agreement 、fdp Agreements, etc .
(6) Transport control layer :tcp—— oriented Connect Of , Reliable transmission ( Commonly used )、udp agreement .TCP The stage of :
Establish a connection with three handshakes , Then data transmission , The last four breakups .
(1) Achieve three handshakes : Network communication I/O Communication is two-way , When there is an output, there is an input , After three times, the client and server know that their input and output are connected .
ack:acknowledge Indicates that a packet has been received , got it ;
Connect : Open up resources in the memory of both sides , Switch state , The process of connection is the process of instantaneous packet interaction ;
IO Model —— file system io、 The Internet io
IO Model essentially : Kernel exposed to program api Derived from socket packing
边栏推荐
- Colorlog结合logging打印有颜色的日志
- @JsonBackReference和@JsonManagedReference(解决对象中存在双向引用导致的无限递归)
- sys.argv
- Cisp-pte practice explanation
- 从表中名称映射关系修改视频名称
- Chrome浏览器的crash问题
- 根据csv文件某一列字符串中某个数字排序
- Restful API design specification
- synchronized 解决共享带来的问题
- China Light conveyor belt in-depth research and investment strategy report (2022 Edition)
猜你喜欢
Beijing invitation media
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
C語言雙指針——經典題型
PLT in Matplotlib tight_ layout()
2. File operation - write
IoT -- 解读物联网四层架构
Mobile phones and computers on the same LAN access each other, IIS settings
egg. JS project deployment online server
[MySQL] database stored procedure and storage function clearance tutorial (full version)
2022.02.13 - NC002. sort
随机推荐
2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
View computer devices in LAN
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
@JsonBackReference和@JsonManagedReference(解决对象中存在双向引用导致的无限递归)
Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
LDAP Application Section (4) Jenkins Access
2022.02.13 - NC003. Design LRU cache structure
查看局域网中电脑设备
电脑F1-F12用途
sys.argv
JVM performance tuning and practical basic theory - Part 1
IoT -- 解读物联网四层架构
JS pure function
Online yaml to CSV tool
Summary of MySQL index failure scenarios
Permutation and combination function
win10系统中的截图,win+prtSc保存位置
Trying to use is on a network resource that is unavailable
2. File operation - write
【ROS】usb_cam相机标定