The performance of the proposed framework is analyzed using an online and an offline DWBA algorithm for
the number of active wavelengths, energy savings at the ONUs and the OLT, and the average delay. The analytical
and simulation results indicate that using the proposed framework, a TWDM-PON can maintain the average delay
of the network under a given delay constraint while achieving significant energy savings at both the OLT and
the ONUs.