aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking/tcp.txt
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /Documentation/networking/tcp.txt
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'Documentation/networking/tcp.txt')
-rw-r--r--Documentation/networking/tcp.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/Documentation/networking/tcp.txt b/Documentation/networking/tcp.txt
new file mode 100644
index 000000000000..71749007091e
--- /dev/null
+++ b/Documentation/networking/tcp.txt
@@ -0,0 +1,39 @@
1How the new TCP output machine [nyi] works.
2
3
4Data is kept on a single queue. The skb->users flag tells us if the frame is
5one that has been queued already. To add a frame we throw it on the end. Ack
6walks down the list from the start.
7
8We keep a set of control flags
9
10
11 sk->tcp_pend_event
12
13 TCP_PEND_ACK Ack needed
14 TCP_ACK_NOW Needed now
15 TCP_WINDOW Window update check
16 TCP_WINZERO Zero probing
17
18
19 sk->transmit_queue The transmission frame begin
20 sk->transmit_new First new frame pointer
21 sk->transmit_end Where to add frames
22
23 sk->tcp_last_tx_ack Last ack seen
24 sk->tcp_dup_ack Dup ack count for fast retransmit
25
26
27Frames are queued for output by tcp_write. We do our best to send the frames
28off immediately if possible, but otherwise queue and compute the body
29checksum in the copy.
30
31When a write is done we try to clear any pending events and piggy back them.
32If the window is full we queue full sized frames. On the first timeout in
33zero window we split this.
34
35On a timer we walk the retransmit list to send any retransmits, update the
36backoff timers etc. A change of route table stamp causes a change of header
37and recompute. We add any new tcp level headers and refinish the checksum
38before sending.
39