I have implemented a very basic scenario that a raspberry pi is connected with vibration sensor and vibration data is sent to cloud. I am showing cloud data in a mobile app. However, I want to implement a fog layer and show the data from fog layer in mobile app. How can I design fog layer in this platform? I have read papers for this issue, unfortunately could not figure out the real implementation of fog layer between end user and cloud.