IoT based smart traffic management