Recent days throughout the world, cities are facing challenges such as population, crimes, transportation, job opportunities, economic growth, environmental sustainability, waste management, traffic flow and energy consumption. In India, many cities are facing many serious issues in the form of air pollution. Considering the above challenges, many cities are spending on information and communication technology to make a sustainable environment which is necessary for the mankind. Internet of things (IoT) has been focused as a growing technology for solving the above social problems and to make a city as smart. Smart cities have been viewed to integrate multiple information and communication technology solutions to enhance efficiency and economical value. Many IoT protocols like low power wireless personal area networks (6LoWPAN), message queue telemetry transport (MQTT), constrained application protocol (CoAP), extensible messaging and presence protocol (XMPP), routing protocol for low power and lossy networks (RPL) and ZigBee protocol are used to make a smart environment. Billions of tiny devices are connected together to make a smart platform. In this paper, IoT protocols that can be suited for smart environments are implemented to find the suitable protocol for connecting millions of tiny internet nodes.