1) While energy efficient traffic engineering is active do

2) Initialization of the selected ports to the number of lit ports;

3) If new roads and all ports are on then

4) ;

5 ) List of ports ← list of links;

6) If the new routes (all ports turned on) then

7) (List-Of-Ports);