How IoT network works and it's integration with cloud and whether distributed algorithms concepts can help in reducing response time and computation