simulation for joining mesh network