Modeling and Analysis of Stochastic Networks