New generation of optical nodes in dense wavelength division multiplexed networks enables operators to improve service flexibility and make significant savings, both in operational and capital expenditures. Thus the main objective of the study is to minimize optical node resources, such as transponders, multiplexers and wavelength selective switches, needed to provide and maintain high quality dense wavelength division multiplexed network services using new generation of optical nodes. A model based on integer programming is proposed, which includes a detailed description of an optical network node. The impact on the network performance of conventional reconfigurable optical add drop multiplexer technology is compared with colorless, directionless and contentionless approaches. The main focus of the presented study is the analysis of the network congestion problem arising in the context of both reconfigurable optical add drop multiplexer technologies. The analysis is supported by results of numerical experiments carried out for realistic networks of different dimensions and traffic demand sets.