当前位置:网站首页>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 .
边栏推荐
- Button wizard play strange learning - go back to the city to buy medicine and add blood
- SwiftUI 组件大全之使用 SceneKit 和 SwiftUI 构建交互式 3D 饼图(教程含源码)
- leetcode 2097 — 合法重新排列数对
- tp6快速安装使用MongoDB实现增删改查
- Why is it not recommended to use BeanUtils in production?
- LeetCode 987. Vertical order transverse of a binary tree - Binary Tree Series Question 7
- The thread reuse problem of PageHelper using ThreadLocal, did you use it correctly?
- 测试右移:线上质量监控 ELK 实战
- Mathematical knowledge: Nim game game theory
- Top ten regular spot trading platforms 2022
猜你喜欢

Leetcode 6103 - minimum fraction to delete an edge from the tree

MySQL foundation 04 MySQL architecture

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

Strongly connected components of digraph

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

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

串口抓包/截断工具的安装及使用详解

MySQL --- 数据库查询 - 条件查询

How is the mask effect achieved in the LPL ban/pick selection stage?

软考信息系统项目管理师_历年真题_2019下半年错题集_上午综合知识题---软考高级之信息系统项目管理师053
随机推荐
Work experience of a hard pressed programmer
tp6快速安装使用MongoDB实现增删改查
Key wizard play strange learning - front desk and Intranet send background verification code
Key wizard play strange learning - multithreaded background coordinate recognition
[my advanced journey of OpenGL learning] collation of Euler angle, rotation order, rotation matrix, quaternion and other knowledge
MySQL --- 数据库查询 - 基本查询
串口抓包/截断工具的安装及使用详解
kivy教程之在 Kivy App 中使用 matplotlib 的示例
Niu Ke swipes questions and clocks in
Concise analysis of redis source code 11 - Main IO threads and redis 6.0 multi IO threads
Androd gradle's substitution of its use module dependency
MySQL基础用法02
Thinkphp+redis realizes simple lottery
2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
Androd Gradle 对其使用模块依赖的替换
Learn the five skills you need to master in cloud computing application development
Is there anything in common between spot gold and spot silver
Database SQL language 02 connection query
力扣 204. 计数质数
传输层 TCP主要特点和TCP连接