A method and system for improving network performance by means of enhancing proxy architecture with redundant gateway