Annex D - Congestion Control and Avoidance
(This annex is informative)
D.1.. Congestion Control
The transmit management subroutine handles congestion control. Transmit management consists of the following components:
Square root limiter. Reduces buffer occupancy time per PDU by using a square root limiter algorithm. The square root limiter also queues PDUs for an output circuit, and prevents buffer deadlock by discarding PDUs when the buffer pool is exhausted. Clause D.1.1 specifies the Square Root Limiter Process.
Originating PDU limiter. Limits originating NPDU traffic when necessary to ensure that transit NPDUs are not rejected. An originating NPDU is an NPDU resulting from an NSDU from the Transport at this ES. A transit NPDU is an NPDU from another system to be relayed to another destination ES.
Flusher. Flushes PDUs queued for an adjacency that has gone down.
Information for higher layer (Transport) congestion control procedures is provided by the setting of the congestion experienced bit in the forwarded data NPDUs.
D.1.1.. Square Root Limiter
The square root limiter discards a data NPDU by calling the ISO 8473 discard PDU function with the reason PDU Discarded due to Congestion when the number of data NPDUs on the circuit output queue exceeds the discard threshold, Ud. Ud is given as follows:=
where:
Nb = Number of Routeing Layer buffers (maximumBuffers) for all output circuits.
Nc = Number of active output circuits (i.e. Circuits in state On).
The output queue is a queue of buffers containing data NPDUs which have been output to that circuit by the forwarding process, and which have not yet been transmitted by the circuit. It does not include NPDUs which are held by the data link layer for the purpose of retransmission. Where a data NPDU is to be fragmented by this Intermediate system over this circuit, each fragment shall occupy a separate buffer and shall be counted as such in the queue length. If the addition of all the buffers required for the fragmentation of a single input data NPDU would cause the discard threshold for that queue to be exceeded, it is recommended that all those fragments (including those which could be added without causing the threshold to be exceeded) be discarded.
D.1.2.. Originating PDU Limiter
TEMPORARY NOTE - Strictly this function is an End System function. However it is closely coupled to the routeing function, particularly in the case of real systems which are performing the functions of both an Intermediate System and an End System (i.e. systems which can both initiate and terminate data NPDUs and perform relaying functions). Therefore, until a more appropriate location for this information can be determined, this function is described here.
The originating PDU limiter first distinguishes between originating NPDUs and transit NPDUs. It then imposes a limit on the number of buffers that originating NPDUs can occupy on a per circuit basis. In times of heavy load, originating NPDUs may be rejected while transit NPDUs continue to be routed. This is done because originating NPDUs have a relatively short wait, whereas transit NPDUs, if rejected, have a long wait a transport retransmission period.
The originating PDU limiter accepts as input:
- An NSDU received from Transport Layer
- A transmit complete signal from the circuit for an ISO 8473 Data PDU.
The originating PDU limiter produces the following as output:
- PDU accepted
- PDU rejected
- Modifications to originating PDU counter
There is a counter, N, and an originating PDU limit, originatingQueueLimit, for each active output circuit. Each N is initialised to 0. The originatingQueueLimit is set by management to the number of buffers necessary to prevent the circuit from idling.
D.1.3.. Flusher
The flusher ensures that no NPDU is queued on a circuit whose state is not ON, or on a non-existent adjacency, or one whose state is not Up.
D.2.. Congestion Avoidance
D.2.1.. Buffer Management
The Forwarding Process supplies and manages the buffers necessary for relaying. PDUs shall be discarded if buffer thresholds are exceeded. If the average queue length on the input circuit or the forwarding processor or the output circuit exceeds QueueThreshold, the congestion experienced bit shall be set in the QoS maintenance option of the forwarded data PDU (provided the QoS maintenance option is present).