当前位置:网站首页>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
边栏推荐
猜你喜欢

Roguelike游戏成破解重灾区,如何破局?

JVM 快速入门

Computer cleaning, deleted system files

The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?

Trying to use is on a network resource that is unavailable

visdom可视化实现与检查介绍

MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object

Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
![[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes](/img/ac/773ce8ee7f380df19edf8373250608.jpg)
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes

synchronized 解决共享带来的问题
随机推荐
Image,cv2读取图片的numpy数组的转换和尺寸resize变化
tree树的精准查询
PC easy to use essential software (used)
704 二分查找
Deep learning: derivation of shallow neural networks and deep neural networks
sublime text的编写程序时的Tab和空格缩进问题
Leetcode skimming (5.29) hash table
深度剖析C语言数据在内存中的存储
[2022 广东省赛M] 拉格朗日插值 (多元函数极值 分治NTT)
电脑清理,删除的系统文件
Visual implementation and inspection of visdom
leetcode刷题 (5.28) 哈希表
C language double pointer -- classic question type
2022.02.13 - NC002. sort
Crash problem of Chrome browser
Browser thread
查看局域网中电脑设备
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
C语言双指针——经典题型
指针进阶---指针数组,数组指针