Integrated schemes of routing, flow control, and congestion control in packet-switched networks are investigated for performance optimization. By utilizing the features of entry-to-exit routing and sliding window flow-control mechanism, the packet-switched networks are modeled as multi-chain, closed queueing networks. After the control parameters and objective function are introduced, an efficient method is derived to compute the gradient vector and Hessian matrix of such an objective function. Our method, used with a general non-linear programming strategy, solves this non-linear optimization problem. Several examples have been investigated which showed an efficient and stable behavior. The results obtained by our method are compared with exact values. It is shown that they are accurate.