Exploiting neighborhood information in wireless networks: Channel assignment and replica detection