Performance Comparison and Analysis of Transport Protocol Based on NS2

There are two important protocols in the transport layer.One is connectionless UDP,and the other is connection-oriented TCP.Due to different characteristics and advantages,these two protocols are suitable for different applications.Therefore,this paper uses NS-2 to evaluate these two protocols and compares their performance parameters.Based on the data results,it can be seen that UDP is suitable for the delay-sensitive applications and that TCP is suitable for reliable applications.