A Network Simulator for Autonomic Context-Aware Architecture