Numerical methods for solving nonlinear stochastic models with applications to computer network problems