当前位置:网站首页>Advanced network accounting notes (III)
Advanced network accounting notes (III)
2022-06-23 18:58:00 【Bachuan Xiaoxiaosheng】
Transport layer
service
End system application Logical communication between
Network services —— Host to host
Transport services —— Process to process ( Finer particle size , Import port number )
agreement
The communication between two peer-to-peer transport layer entities in the end system complies with the rule set
- TCP
- There is a connection
- reliable
- Keep the order
- UDP
- There is no connection
- unreliable
- No order
Reuse / Demultiplexing
Reuse
Source end (TCP / UDP) Entities collect data from multiple upper tier applications
Demultiplexing
The receiving end sets the data according to the port number ( combination IP Address ) To the appropriate application
working principle
IP & Port
- TCP: Four tuple
- UDP: Binary
UDP
The need for
- No need to be reliable , Delay sensitive real-time applications
- Need to be reliable but can't accept TCP Delay cost , Reliable based on application layer ——QUIK
- Low overhead :8Byte Head
- Transactional applications : One interaction complete
message
Connectionless datagram
Parity check
Reliable data transmission
Technical mechanisms
Protocol evolution
- The checksum
- Positive confirmation
- Reverse confirmation
- Serial number
- repeat
- Disorder
- gap
- Test and resend / Timeout retransmission
- The sliding window
- Processing lost
- Positive acknowledgement mechanism
utilization
Stop waiting for Technology
Link bandwidth delay product ( Capacity ) High channel utilization is low
Pipeline technology
Send multiple messages continuously without the other party's confirmation PDU
- GBN( Back off N)
The send window is larger than 1, Accept window =1
Can only receive in sequence , The sender only sets a single timeout , Error goes back to error PDU retransmission - SR( Choose to resend )
The send window is larger than 1, The acceptance window is larger than 1
It can be received out of order , The sender of sends for each PDU Set the timeout , Retransmission timeout PDU
TCP
Service features
- Point to point
- Reliable sequence preserving byte stream
- The Conduit
- buffer
- full duplex
- Connection oriented
- flow control
Segment structure
- The sequence number is the offset of the first byte on the byte stream
- Negotiate the starting sequence number when establishing a connection , Random , The clock
- Confirmation is to receive the last byte of the sequence +1, And follow-up expectations
RTT Time estimates & Estimated retransmission timeout
Moving average
* Average round trip delay
* The standard deviation of the current round-trip delay sampling and average
RTO( Over time retransmission ) = flat all value + 4 × mark accurate Bad = Average +4\times Standard deviation = flat all value +4× mark accurate Bad
Reliable transmission
The fast retransmission
Receive three repetitions of a certain paragraph from the other party without timeout ACK
Four times
flow control
Purpose
Prevent flooding duif
methods
The feedback carries the receiving window size to the sender
Connection management
- establish
3 The second handshake , Confirm the initial serial number , Prepare buffer - Connect
Resources to prepare , Control variable set , Prepare for communication - Remove the connection
symmetry , There is a problem between the two armies - Connection state and transition
Congestion control
congestion
Too much data needs to be sent by the network core , It exceeds the processing capacity of some routers
performance
- Big delay , Excessive packet loss
- Overall, the throughput does not increase with the injection rate
- Accelerated deterioration
Purpose
- Return to a non congested state
- Try to transmit as fast as possible when there is no congestion ( Large throughput )
- Little delay
methods
- End to end :TCP
- Network assisted :ATM Network flag and carry congestion information , Feedback to the host , upgrade TCP Of ECN
Traditional congestion control
Detect congestion
- Three redundancies ACK( slight )
- Overtime ( Small probability of miscalculation )
Control mechanism
AIMD Slow start Conservative policy after timeout
Algorithm
- Tahoe——( Timeout and ACK Redundant same processing )
- Reno——( Different treatment )
follow-up
- New Reno
- Sack
- ECN
- CUBIC
- BBR
边栏推荐
- CV-图像分类
- Yaxiang spice listed on Shenzhen Stock Exchange: with a market value of 4billion, Dinglong Bohui and Yongyao investment are shareholders
- [QT] Chapter 10: Database
- 杰理之动态开关 VCOMO 调式方法【篇】
- TimerTasks笔记
- GES图计算引擎HyG揭秘之图切分
- Product feedback mechanism
- Develop small programs and official account from zero [phase I]
- 产品设计- 需求分析
- 可编程的,协议独立的软件交换机(论文阅读)
猜你喜欢
随机推荐
Browser cross domain
STM32 (IX) -- can
Leetcode question brushing: hash table 05 (adding four numbers II)
指标(复杂指标)定义和模型
高级计网笔记(四)
Machine learning jobs
The yuan universe killer is coming! Xiao Zha offered 4 VR head displays to challenge the visual Turing test
博睿数据出席阿里云可观测技术峰会,数字体验管理驱动可持续发展
Heavyweight: the domestic ide was released, developed by Alibaba, and is completely open source! (high performance + high customization)
sed replace \tPrintf to \t//Printf
从零开发小程序和公众号【第一期】
(10) Binary tree
Use of stream streams
重磅:国产IDE发布,由阿里研发,完全开源!(高性能+高定制性)
可编程数据平面(论文阅读)
VirtP4笔记
韬略生物冲刺科创板:年亏损过亿 实控人张大为夫妇为美国籍
凸优化笔记
矩阵分析笔记(三-1)
高级计网笔记(五)








