当前位置:网站首页>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 .
边栏推荐
- 【FPGA教程案例6】基于vivado核的双口RAM设计与实现
- 按键精灵打怪学习-多线程后台坐标识别
- 按键精灵打怪学习-自动寻路回打怪点
- Now that the teenager has returned, the world's fireworks are the most soothing and ordinary people return to work~
- Kivy tutorial how to create drop-down lists in Kivy
- ThinkPHP+Redis实现简单抽奖
- 给你一个可能存在 重复 元素值的数组 numbers ,它原来是一个升序排列的数组,并按上述情形进行了一次旋转。请返回旋转数组的最小元素。【剑指Offer】
- Top ten regular spot trading platforms 2022
- Esp32 simple speed message test of ros2 (limit frequency)
- [技术发展-23]:DSP在未来融合网络中的应用
猜你喜欢

给你一个可能存在 重复 元素值的数组 numbers ,它原来是一个升序排列的数组,并按上述情形进行了一次旋转。请返回旋转数组的最小元素。【剑指Offer】

MySQL basic usage 02

Database SQL language 01 where condition

MySQL foundation 05 DML language

wirehark数据分析与取证A.pacapng

Androd gradle's substitution of its use module dependency

C#应用程序界面开发基础——窗体控制(1)——Form窗体

【面试题】1369- 什么时候不能使用箭头函数?

Basis of information entropy

leetcode刷题_两数之和 II - 输入有序数组
随机推荐
Expérience de recherche d'emploi d'un programmeur difficile
Arduino DY-SV17F自动语音播报
wirehark数据分析与取证A.pacapng
【面试题】1369- 什么时候不能使用箭头函数?
QTableWidget懒加载剩内存,不卡!
[Arduino experiment 17 L298N motor drive module]
【QT】自定义控件的封装
[my advanced journey of OpenGL learning] collation of Euler angle, rotation order, rotation matrix, quaternion and other knowledge
LeetCode 987. Vertical order transverse of a binary tree - Binary Tree Series Question 7
C#应用程序界面开发基础——窗体控制(1)——Form窗体
一比特苦逼程序員的找工作經曆
[C language] detailed explanation of pointer and array written test questions
Matlab Doppler effect produces vibration signal and processing
[fh-gfsk] fh-gfsk signal analysis and blind demodulation research
數學知識:臺階-Nim遊戲—博弈論
一位苦逼程序员的找工作经历
Excel if formula determines whether the two columns are the same
2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
音程的知识的总结
SwiftUI 组件大全之使用 SceneKit 和 SwiftUI 构建交互式 3D 饼图(教程含源码)