Multiple Channels and Sequence Numbers
If multiple channels are to be used for a connection, then it becomes interesting to determine how the sequence numbers of the channels can be coupled so that sequence number maintenance can be done efficiently.
Assigning sequence numbers to each octet of data and control, as in the TCP, allows positive acknowledgement and ordering. However, since packets are retransmitted on timeout, and since multi-path packet switch networks can cause a packet to stay around for a long time, the presence of duplicate packets and out-of-order packets must be accounted for. A sequence number acceptability test must be performed on each packet received to determine if one of the following actions should be taken:
-
Acknowledge the packet and pass it on to the user.
-
Acknowledge the packet, but do not send it to the user, since it has already been delivered.
-
Discard the packet; the sequence number is not believable.
Acceptability on Channel 0
To determine the action to be taken for a packet, acceptability ranges are defined. The following three ranges are mutually exclusive and collectively exhaustive of the sequence number space (see Figure 1):
-
Ack-deliver range (ADR)
-
Ack-only range (AOR)
-
Discard range (DR)
ACCEPTABILITY RANGES
DR AOR ADR DR
\\=====)[===========)[===================](========\\
^ ^^ ^^
! !\ !\
! ! FCLE ! DRLE
AOLE AORE ADRE
Figure 1
Let
S = size of sequence number space (number per octet)
x = sequence number to be tested
FCLE = flow control left window edge
ADRE = (FCLE+ADR) mod S = Ack-deliver right edge (Discard
left edge - 1)
AOLE = (FCLE-AOR) mod S = Ack-only left edge (Discard
right edge + 1)
TSE = time since connection establishment (in sec)
MPL = maximum packet lifetime (in sec)
TB = TCP bandwidth (in octets/sec)
For any sequence number, x, and packet text length, l, if
(AOLE <= x <= ADRE) mod S and
(AOLE <= x+l-1 <= ADRE) mod S
then the packet should be acknowledged.
If x and l satisfy
(FCLE <= x <= ADRE) mod S and
(FCLE <= x+l-1 <= ADRE) mod S
then x can also be delivered to the user; however, ordered delivery requires that x = FCLE.
A packet is not in a range only if all of it lies outside a range. When a packet falls in more than one range, precedence is ADR, then AOR, then DR. When a packet falls in the AOR then an ACK should be sent, even if a packet has to be created. The ACK will specify the current left window edge. This assures acknowledgment of all duplicates.
ADRE is exactly the maximum sequence number ever "advertised" through the flow control window, plus one. This allows for controls to be accepted even though permission for them may never have been explicitly given. Of course, each time a control with a sequence number equal to the ADRE is sent, the ADRE must be incremented by one.
AOR is set so that old duplicates (from previous incarnations of the connection) can be detected and discarded. Thus
AOR = Min(TSE, MPL) * TB