Security Analysis On Network Systems Based On Some Stochastic Models