LiFi is not the replacement of WiFi technology. It can be considered as incredible companion of the WiFi technology. It operates between 380 nm to 780 nm optical range. LiFi is used to exchange data incredibly rapidly and securely at much lower power level compare to WiFi.
Below is the internet architecture diagram flow