Resource Allocation Algorithm Based on Modeling of Ubiquitous Network Node Capability