Quantitative Analysis of Cognitive Radio and Network