Modeling and analysis of the performance of networks in finite-buffer regime