Neighbor discovery algorithms for friendship establishment in the social Internet of Things