As the call for data is rapidly increasing all over the globe it is necessary to deal with data safely to deal with data, we need some services like cloud and fog computing. Cloud computing and fog computing are the computing platforms which provide firm to run the communication without any kind of disturbance. This paper gives overview of cloud computing and fog computing. The survey of this paper focuses on cloud and fog computing and comparison of those both computing platforms. As we can easily analysis the best computing platform. As fog computing is the extended part of cloud computing that is it is add-on for the cloud computing platform. Cloud functions over internet it has many chances of collapsing while fog is more secure when compared to cloud as it has different protocols and standards in it and this fog have less chances of collapsing. Here fog computing security is higher when compared to cloud computing. This paper gives the review and analysis on fog and could computing.