The fog computing is based on IoT, and same as clouds are on the edge of a network between a device and the cloud, which can provide very close service to the device in real time. cloud computing frameworks also extend support to emerging application paradigms such as IoT, Fog computing, Edge, and Big Data through service and infrastructure. the ubiquitous deployment of sensors in smart cities requires a high-performance computing paradigm to support big data analysis with smart technologies and communications in IoT, providing location-awareness and latency-sensitive computing near the data sources (i.e., at the edge of the network). Cloud Computing paradigms widely used in enterprises to address the emerging challenges of big data analysis because of its scalable and distributed data management scheme. However, data centers in the Cloud faces great challenges on the burden of exploding amount of big data and the additional requirements of location awareness and low latency at the edge of network necessary for smart cites. the widely distributed sensor networks generate massive volume of data, which leads to a “Big Data “analysis challenge. The machine-to-machine(M2M) communication among massive numbers of sensors will dominate future communication network traffic, namely Internet of Things, instead of traditional Internet of Contents (IoC) in human-to-human and human-to-machine communication. In this review system where we took the research article around 33 from the different database and also taken 1987 datasets form the PubMed database from 1959 to 2024 (02 June 2024). In addition, depending on the different requirement which is partially processed the data. Then the gathered data is stored at the ledger unit through the smart cities based on the fog computing and big data technology. The hashing identity-based data encryption is a public key encryption which uses a digital signature to encrypt the data to prevent the information from the third party.