Skip to main content

7. Expedited Data

This memo utilizes a second TCP connection to handle expedited data and does not make use of the TCP URGENT mechanism. The primary disadvantage of this decision is that single-threaded implementations of TCP may have some difficulty in supporting two simultaneous connections. There are however several advantages to this approach:

a. Use of a single connection to implement the semantics of expedited data implies that the TSAP peer manage a set of buffers independent from TCP. The peer would, upon indication of TCP urgent information, have to buffer all preceeding TPKTs until the TCP buffer was empty. Expedited data would then be given to the TS-user. When the expedited data was flushed, then the buffered (non-expedited) data could be passed up to the receiving user.

b. It assumes that implementations support TCP urgency correctly. This is perhaps an untrue assumption, particular in the case of TCP urgency occuring when the send window is zero-sized. Further, it assumes that the implementations can signal this event to the TCP-user in a meaningful fashion. In a single-threaded implementation, this is not likely.

Given a reasonable TCP implementation, the TS-peer need listen on two TCP sockets in either polling or interrupt mode. When the TS-peer is given data, the TCP must indicate which connection should be read from.

The only tricky part of the protocol is that the client must be able to start a passive OPEN for the expedited port, and then wait to read from another connection. In between the passive OPEN and the other connection supplying data, the server will connect to the expedited port, prior to sending data on the other connection. To summarize from Section 5, the sequence of events, with respect to TCP, is:

time      client                          Server
---- ------ ------
0. passive OPEN of port 102

1. T-CONNECT.REQUEST from user
passive OPEN of expedited
port (non-blocking)

2. active OPEN of port 102

3. send CC TPKT

4. port 102 connected

5. receive CC TPKT
T-CONNECT.INDICATION to
user
T-CONNECT.RESPONSE from
user

6. active OPEN to expedited
port

7. expedited port connected

8. send CR TPKT

9. receive CR TPKT
verify expedited port
connected correctly

Multi-threaded implementations of TCP should be able to support this sequence of events without any great difficulty.