This chapter is a study of exploring the role of the optical network in the cloud/ fog computing environment. With the growing network issues, unified and cost-effective computing services and efficient utilization of optical resources are required for building smart applications. Fog computing provides the foundation platform for implementing cyber-physical system (CPS) applications which require ultra-low latency. Also, the digital revolution of fog/cloud computing using optical resources has upgraded the education system by intertwined VR using the fog nodes. Presently, the current technologies face many challenges such as ultra-low delay, optimum bandwidth, and minimum energy consumption to promote virtual reality (VR)-based and electroencephalogram (EEG)-based gaming applications. Ultra-low delay, optimum bandwidth, and minimum energy consumption. Therefore, an Optical-Fog layer is introduced to provide a novel, secure, highly distributed, and ultra-dense fog computing infrastructure. Also, for optimum utilization of optical resources, a novel concept of OpticalFogNode is introduced that provides computation and storage capabilities at the Optical-Fog layer in the software defined networking (SDN)-based optical network. It efficiently facilitates the dynamic deployment of new distributed SDN-based OpticalFogNode which supports low-latency services with minimum energy as well as bandwidth usage. Therefore, an EEG-based VR framework is also introduced that uses the resources of the optical network in the cloud/fog computing environment.