




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An in-depth analysis of the performance comparison between TCP and UDP using NS2 network simulator. It discusses the features, segment fields, and simulation scenarios of both protocols, and presents the results and interpretations of packet delivery ratio, average throughput, and average end-to-end delay in two different scenarios where bandwidth and packet size are varied. The study concludes that TCP outperforms UDP in both scenarios.
What you will learn
Typology: Summaries
1 / 8
This page cannot be seen from the preview
Don't miss anything!
This document attempts to investigate the performance comparison of TCP and UDP variants and find out which one is the better and suitable for different applications The simulation tool used for investigation is NS2(Network Simulator version 2) which is used for studying dynamic nature of communications , for both wired and wireless network functions and for routing algorithms **2.OVERVIEW :
manage them in deeper level Example : TCP : HTTP HTTPS FTP Many other games Example : UDP : DNS IP telephony DHCP Many computer games 4.SEGEMENT FIELDS OF TCP AND UDP :
Packet Delivery Ratio (PDR) PDR is the percentage of data packets transported to the destination to those produced by sources PDR = Sum(No of Packets received)/ Sum(num of Packets Sent) * Average Throughput (TP): It is the bytes successfully received and is calculated as : TP = No. of Bytes Received * 8 * Simulation Time * 1000 Kbsp Average End To End Delay (e2e Delay) : It is the mean time of the successfully transmitted data packet over the network from source to destination. It is computed as : E2e delay = Sum(arrive_time - send_time) / Sum(number of connection) Packet Loss (PL): It is the difference among the data packets transmitted and the data packets received PL = No of data packets sent – No of data packets received 7.NETWORK METRICS : Bandwidth : It is the data number that transfer from source to destination Packet Size : A packet is the unit of data which is routed between the source and destination
8.SIMULATION RESULTS : (Vs BandWidth)
In this entire procedure the simulation is done in two different scenario wherein one scenario the bandwidth is varied and in other packet size is varied First Scenario : TP based analysis : In first scenario the bandwidth is varied and we can see from the figures that the TCP has achieved 700.71 of throughput while UDP stops with 687.1 meaning TCP receives more data than UDP e2e Based Analysis : In figure 5 the behavior of protocols based on e2e delay is projected and we can see TCP has an average of 0.62018 sec while UDP has 0. sec .It is very obvious that there is no huge difference between the protocols in e2e delay PDR Based Analysis : In terms of PDR (fig 6) the TCP has a better behavior as TCP has obtained 100% of network while UDP obtained 4.04 of PDR PDL Based Analysis : However TCP has 0% PDL while UDP has 95.96 shown in fig 7 These results conclude that TCP is better in this scenario based on this performance measures Second Scenario : TP Based Analysis : In second scenario the packet size is varied and the results show that TCP has 580.67 of throughput while UDP has 302.67 (fig 8) e2e Based Analysis : TCP has 0.93883 sec while UDP has 2.84602 sec and so TCP performance is faster than UDP in sending and receiving data (fig 9) PDR Based Analysis : TCP has outperformed UDP by having 95.7 of PDR while UDP has 3 (fig 10) PL Based Analysis : TCP has 4.74 of PL while UDP has 97 Thus the second scenario also shows that TCP is better than UDP by analyzing the performance measures 10.CONCLUSION : Thus from the observations made on the two scenarios and the performance measures recorded it is obvious that TCP outperforms UDP in both scenarios and it is the better transport layer protocol