当前位置:网站首页>Main features of transport layer TCP and TCP connection
Main features of transport layer TCP and TCP connection
2022-07-03 01:31:00 【Zhang quandan, Foxconn quality inspector】
TCP The main features of the agreement
TCP Is a connection-oriented transport layer protocol .( Before the official data transmission, you need to send 3 A packet , This is called three handshakes , Negotiate parameters after establishing the connection , For example, how big is the cache , How many bytes are accepted for each segment )
Every one of them TCP Connections can have only two endpoints (end point), It can only be point-to-point ( one-on-one , Neither multicast nor broadcasting can work ).
TCP Provide reliable delivery of services . in other words , adopt TCP Connect the transmitted data , No mistakes 、 No loss 、 Send in sequence without repetition .
TCP Provide full duplex communication .( Once the sender and receiver have established a connection , Then you can use this connection for two-way communication )
Byte stream oriented .TCP Medium “ flow ”(steam) A sequence of bytes flowing into or out of a process .( Whether it's web pages or pictures , All in bytes 8 The bit , Put bytes into the cache one by one , What the application layer gives to the transport layer is the byte stream ,udp It's a message , All the content to be transmitted by the application is given udp agreement )

IP The network provides unreliable transmission
TCP Connection oriented transport layer protocol , Without connection 、 unreliable IP Provide reliable delivery services based on network services . So , stay IP Based on datagram service , Added a series of measures to ensure reliability .

TCP Byte stream oriented

Segment bytes , Then add the first , The first part has the functions of numbering .
Be careful
TCP A connection is a virtual connection, not a real physical connection .
TCP How many messages are sent to the application process at one time TCP We don't care .TCP According to the window value given by the other party and the current degree of network congestion, it determines how many bytes a message segment should contain (UDP The length of the message sent is given by the application process ).
TCP Too long data blocks can be divided into shorter ones and then transmitted .
TCP It can also wait for enough bytes to accumulate before sending out the message segment .
TCP The connection of
TCP Take connection as the most basic abstraction . Every one of them TCP The connection has two endpoints .
TCP The endpoint of the connection is not a host , It's not the mainframe IP Address , It's not the application process , It's not the protocol port of the transport layer .TCP The endpoint of a connection is called a socket (socket) Or socket .
The port number is spliced to (contatenated with)IP The address constitutes the socket .

Socket
One IP+ Port identification TCP One end , This is called socket .

TCP Connect IP Address Socket
TCP Connection is an abstraction provided by protocol software .
TCP The end of the connection is a very abstract socket , namely (IP Address ∶ Port number ).
The same IP There can be many different addresses TCP Connect . The same port number can also appear in multiple different TCP Connecting .
边栏推荐
- Mongodb common commands of mongodb series
- Database SQL language 02 connection query
- Basis of information entropy
- Arduino DY-SV17F自动语音播报
- 按键精灵打怪学习-前台和内网发送后台验证码
- 按鍵精靈打怪學習-多線程後臺坐標識別
- Tp6 fast installation uses mongodb to add, delete, modify and check
- Learn the five skills you need to master in cloud computing application development
- 对非ts/js文件模块进行类型扩充
- Database SQL language 01 where condition
猜你喜欢

Why can't the start method be called repeatedly? But the run method can?

Arduino DY-SV17F自动语音播报
![[Arduino experiment 17 L298N motor drive module]](/img/e2/4511eaa942e4a64c8ca2ee70162785.jpg)
[Arduino experiment 17 L298N motor drive module]

电信客户流失预测挑战赛

Telephone network problems

Expérience de recherche d'emploi d'un programmeur difficile
![[interview question] 1369 when can't I use arrow function?](/img/7f/84bba39965b4116f20b1cf8211f70a.png)
[interview question] 1369 when can't I use arrow function?

Basic concept and implementation of overcoming hash

【QT】自定义控件的封装

Machine learning terminology
随机推荐
Excel removes the data after the decimal point and rounds the number
Top ten regular spot trading platforms 2022
电信客户流失预测挑战赛
Mathematical Knowledge: Steps - Nim Games - Game Theory
MySQL basics 03 introduction to MySQL types
【FPGA教程案例5】基于vivado核的ROM设计与实现
海量数据冷热分离方案与实践
How is the mask effect achieved in the LPL ban/pick selection stage?
按键精灵打怪学习-自动回城路线的判断
The difference between tail -f, tail -f and tail
【系统分析师之路】第五章 复盘软件工程(开发模型开发方法)
Using tensorboard to visualize the model, data and training process
Key wizard play strange learning - multithreaded background coordinate recognition
[self management] time, energy and habit management
Excel if formula determines whether the two columns are the same
力扣 204. 计数质数
Makefile中wildcard、patsubst、notdir的含义
Key wizard play strange learning - front desk and Intranet send background verification code
按鍵精靈打怪學習-多線程後臺坐標識別
Mathematical knowledge: step Nim game game game theory