Analysis and optimization of TCP Congestion Control Algorithms in Diverse Network Conditions