
PXB 4330 E
ABM Buffer Configuration
Semiconductor Group
35
Application Note 11.98
/* ***************************** Begin PPD Algorithm **************************************/
/* Evaluation if this cell is a user-to-user-cell and the last cell of a
packet. Then LCItable-PPDdiscardRestofPacket-flag_0 is set to 0 to avoid
the discarding of the last cell of a packet. So the last cell can convey
the discard information to the terminal. By checking the CRC-32 checksum
of AAL5 the terminal can determine rapidly that cells were lost and can
immediately ask for retransmission. Otherwise it would have to wait for a
time-out. */
if (utu=1 AND EndofPacket=1)
then
LCItable-PPDdiscardRestofPacket-flag_0 = 0;
else
don’t modify LCItable-PPDdiscardRestofPacket-flag_0;
end if
/* Evaluation if PPD is enabled for this traffic class and this cell is a
user-to-user-cell and not the last cell of this packet (LCItable-
PPDdiscardRestofPacket-flag_0=1). Then this cell is discarded by PPD. */
if (PPDen=1 AND LCItable-PPDdiscardRestofPacket-flag_0=1 AND utu=1)
then
Accept_flag = 0;
end if
/* ********************************** End of PPD Algorithm **********************************/
/************************************ Evaluation of Accept_flag ******************************/
if (Accept_flag = 1)
then
buffer incoming cell;
else
discard cell;
if (utu=1 AND EndofPacket=0)
then
LCItable-PPDdiscardRestofPacket-flag_0 = 1;
end if
/* Description for else-branch: it is still a part of the PPD algorithm
(besides the command line "discard cell;"). PPD can be done if any discard
threshold is exceeded (= discard cell). Thus the part of the PPD algorithm
which prepares the PPD by examining whether this discarded cell is not the
last cell of a packet (last cell of a packet isn’t discarded by PPD)and
if then setting LCItable-PPDdiscardRestofPacket-flag_0=1, is located
here. Then with the next arriving cell PPD is triggered in the PPD
algorithm (as now applies LCItable-PPDdiscardRestofPacket-flag_0=1). The
alternative would be to make once again the query of all discard thresholds
within the PPD algorithm but this is a unnecessary additional effort */
/************************************* End of Pseudocode ************************************/