Skip to main content

RDP Segments and Formats: EACK, RST and NUL Segments

4.5 Extended ACK Segment​

The EACK segment is used to acknowledge segments received out of sequence. It contains the sequence numbers of one or more segments received with a correct checksum, but out of sequence. The EACK is always combined with an ACK in the segment, giving the sequence number of the last segment received in sequence. The EACK segment may also include user data.

4.5.1 EACK Segment Format​

The EACK segment has the format shown in Figure 8.

4.5.2 EACK Segment Fields​

Data Length

A non-zero Data Length field indicates that there is data present in the segment.

Sequence Number

The value of the Sequence Number field is advanced to the next sequence number only if there is data present in the segment. An EACK segment without data does not use sequence number space.

Acknowledgement Number

The Acknowledgement Number field contains the sequence number of the last segment received in sequential order.

Sequence # Received OK

Each entry is the sequence number of a segment that was received with a correct checksum, but out of sequence.

                   0             0 0   1         1
                   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
                  +-+-+-+-+-+-+---+---------------+
                0 |0|1|1|0|0|0|0 1| Header Length |
                  +-+-+-+-+-+-+---+---------------+
                1 | Source Port   |   Dest. Port  |
                  +---------------+---------------+
                2 |          Data  Length         |
                  +---------------+---------------+
                3 |                               |
                  +---    Sequence Number      ---|
                4 |                               |
                  +---------------+---------------+
                5 |                               |
                  +--- Acknowledgement Number  ---+
                6 |                               |
                  +---------------+---------------+
                7 |                               |
                  +---        Checksum         ---+
                8 |                               |
                  +---------------+---------------+
                9 |                               |
                  +--- Sequence # Received OK  ---+
               10 |                               |
                  +---------------+---------------+
               11 |                               |
                  +--- Sequence # Received OK  ---+
               12 |                               |
                  +---------------+---------------+
                  :               .               :
                  :               .               :
                  :               .               :
                  +---------------+---------------+
                  |                               |
                  |             Data              |
                  |                               |
                  +---------------+---------------+

                       EACK Segment Format
                            Figure 8

4.6 RST Segment​

The RST segment is used to close or reset a connection. Upon receipt of an RST segment, the sender must stop sending and must abort any unserviced requests. The RST is sent as a separate segment and does not include any data.

4.6.1 RST Segment Format​

                   0             0 0   1         1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+---+---------------+
0 |0|0|0|1|0|0|0 1| Header Length |
+-+-+-+-+-+-+---+---------------+
1 | Source Port | Dest. Port |
+---------------+---------------+
2 | Data Length = 0 |
+---------------+---------------+
3 | |
+--- Sequence Number ---+
4 | |
+---------------+---------------+
5 | |
+--- Acknowledgement Number ---+
6 | |
+---------------+---------------+
7 | |
+--- Checksum ---+
8 | |
+-------------------------------+

RST Segment Format
Figure 9

4.7 NUL Segment​

The NUL segment is used to determine if the other side of a connection is still active. When a NUL segment is received, an RDP implementation must acknowledge the segment if a valid connection exists and the segment sequence number falls within the acceptance window. The segment is then discarded. The NUL may be combined with an ACK in a segment but is never combined with user data.

4.7.1 NUL segment format​

                   0             0 0   1         1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+---+---------------+
0 |0|0|0|0|1|0|0 1| Header Length |
+-+-+-+-+-+-+---+---------------+
1 | Source Port | Dest. Port |
+---------------+---------------+
2 | Data Length = 0 |
+---------------+---------------+
3 | |
+--- Sequence Number ---+
4 | |
+---------------+---------------+
5 | |
+--- Acknowledgement Number ---+
6 | |
+---------------+---------------+
7 | |
+--- Checksum ---+
8 | |
+-------------------------------+

NUL Segment Format
Figure 10