The Internet of Things is a paradigm for connecting objects using a common set of network technologies. Implementing IoT by host-to-host communication models, such as IP, faces a lot of challenges. It is because of the heterogeneous and constrained devices that connect temporarily to different networks and different security domains. Also it requires communication capabilities, for both local network and at worldscale. This research examines how NDN, a proposed architecture for future of the Internet, can respond to these challenges and provide a safer and more straightforward method for deploying IoT. The NDN content-centric communication model makes it possible to interact directly with the contents, and IoT networks can be more easily developed and configured. Also we show that using NDN alone is not enough and we need to use a concept called Fog Computing. So, based on the topics discussed, we propose a four-layer model inorder to achieve a better structure for IoT. Also for evaluation, NDN protocol as the core of the network in the proposed model, is compared with MQTT protocol, one of the most common IoT protocols and it is shown that although MQTT performs much better in terms of memory usage, but in different aspects, NDN has more flexibility