Research Article
Rate Adaptation Mechanism with Available Data Rate Trimming and Data Rate Information Provision for V2I Communications
Algorithm 1
Flexible data rate selection.
| (1) | use data rate based on dataset | | (2) | IF a fixed number of consecutive frames are lost THEN | | (3) | use two data rates (the current data rate and a data rate lower than the current data rate) | | (4) | WHILE using two data rates | | (5) | measure lost frames for each data rate | | (6) | IF both data rates have no lost frames THEN | | (7) | use the higher data rate | | (8) | ELSE IF only the higher data rate has lost frames THEN | | (9) | use the lower data rate | | (10) | ELSE IF both data rates have lost more frames than a predetermined threshold THEN | | (11) | use a third data rate lower than the lower data rate | | (12) | ELSE IF both data rates have lost fewer frames than a predetermined threshold THEN | | (13) | use the higher data rate | | (14) | ENDIF | | (15) | ENDWHILE | | (16) | ENDIF |
|