]> git.meshlink.io Git - utcp/blob - README
d5edf564fb93533662533529eba3da378f1fcd21
[utcp] / README
1 This is a light-weight, user-space implementation of RFC 793 (TCP), without any
2 reliance on an IP layer.  It can be used to provide multiple in-order, reliable
3 streams on top of any datagram layer.
4
5 UTCP does not rely on a specific event system. Instead, the application feeds
6 it with incoming packets using utcp_recv(), and outgoing data for the streams
7 using utcp_send(). Most of the rest is handled by callbacks. The application
8 must however call utcp_timeout() regularly to have UTCP handle packet loss.
9
10 The application should run utcp_init() for every peer it wants to communicate
11 with.
12
13 DIFFERENCES FROM RFC 793:
14
15 * No checksum. UTCP requires the application to handle packet integrity.
16 * 32-bit window size. Big window sizes are the default.
17 * No ECN, PSH, URG
18
19 TODO v1.0:
20
21 * Implement send buffer
22 * Window scaling
23 * Handle retransmission
24
25 TODO v2.0:
26
27 * Nagle
28 * NAK and SACK
29 * Congestion window scaling
30 * Timestamps?
31
32 Future ideas:
33
34 Fast open:
35         SYN + data?
36
37 Receive-only open:
38         SYN|FIN
39
40 Fast transaction:
41         SYN|FIN + request data ->
42         <- SYN|ACK|FIN + response data
43         ACK ->
44
45 Does this need special care or can we rely on higher level MACs?