Algorithm and Technique for Enhancing Networking Performance