当前位置:网站首页>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
边栏推荐
- China's high purity aluminum target market status and investment forecast report (2022 Edition)
- Leetcode question brushing (5.31) string
- Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
- Report on Market Research and investment prospects of China's silver powder industry (2022 Edition)
- Shift Operators
- Roguelike game into crack the hardest hit areas, how to break the bureau?
- On the inverse order problem of 01 knapsack problem in one-dimensional state
- Online yaml to CSV tool
- pytorch训练好的模型在加载和保存过程中的问题
- Let the bullets fly for a while
猜你喜欢

Sublime text in CONDA environment plt Show cannot pop up the problem of displaying pictures

Screenshot in win10 system, win+prtsc save location

生成器参数传入参数

egg. JS getting started navigation: installation, use and learning

Cisp-pte practice explanation

Unified ordering background interface product description Chinese garbled

Online yaml to CSV tool

Light of domestic games destroyed by cracking

Visual implementation and inspection of visdom

2022 Inner Mongolia latest construction tower crane (construction special operation) simulation examination question bank and answers
随机推荐
The mysqlbinlog command uses
tree树的精准查询
Online yaml to CSV tool
leetcode刷题 (5.31) 字符串
Mobile phones and computers on the same LAN access each other, IIS settings
poi追加写EXCEL文件
被破解毁掉的国产游戏之光
Cisp-pte practice explanation
Summary of phased use of sonic one-stop open source distributed cluster cloud real machine test platform
Roguelike game into crack the hardest hit areas, how to break the bureau?
2022.02.13 - NC001. Reverse linked list
Vocabulary notes for postgraduate entrance examination (3)
LDAP Application Section (4) Jenkins Access
生成器参数传入参数
sublime text中conda环境中plt.show无法弹出显示图片的问题
MySQL learning record 07 index (simple understanding)
How to conduct interface test? What are the precautions? Nanny level interpretation
Leetcode skimming (5.29) hash table
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
软件卸载时遇到trying to use is on a network resource that is unavailable