📄 tcp.txt
字号:
How the new TCP output machine [nyi] works.Data is kept on a single queue. The skb->users flag tells us if the frame isone that has been queued already. To add a frame we throw it on the end. Ackwalks down the list from the start.We keep a set of control flags sk->tcp_pend_event TCP_PEND_ACK Ack needed TCP_ACK_NOW Needed now TCP_WINDOW Window update check TCP_WINZERO Zero probing sk->transmit_queue The transmission frame begin sk->transmit_new First new frame pointer sk->transmit_end Where to add frames sk->tcp_last_tx_ack Last ack seen sk->tcp_dup_ack Dup ack count for fast retransmitFrames are queued for output by tcp_write. We do our best to send the framesoff immediately if possible, but otherwise queue and compute the bodychecksum in the copy. When a write is done we try to clear any pending events and piggy back them.If the window is full we queue full sized frames. On the first timeout inzero window we split this.On a timer we walk the retransmit list to send any retransmits, update thebackoff timers etc. A change of route table stamp causes a change of headerand recompute. We add any new tcp level headers and refinish the checksumbefore sending.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -