Copyright © 2018 Authors. This is an open access article distributed under the Creative Commons Attribution License, which permits
unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
International Journal of Engineering & Technology, 7 (4.36) (2018) 172-176
International Journal of Engineering & Technology
Website: www.sciencepubco.com/index.php/IJET
Research paper
Performance Comparison between TCP and UDP Protocols in
Different Simulation Scenarios
Fahad Taha AL-Dhief
1
, Naseer Sabri
2
, N. M. Abdul Latiff
1
, Nik Noordini Nik Abd. Malik
1
, Musatafa Abbas
Abbood Albader
3
, Mazin Abed Mohammed
4
, Rami Noori AL-Haddad
5
, Yasir Dawood Salman
6
, Mohd Khanapi
Abd Ghani
7
, Omar Ibrahim Obaid
8
1
Faculty of Electrical Engineering, Department of Communication Engineering, Universiti Teknologi Malaysia, UTM Johor Bahru,
Johor, Malaysia
2
Computing and Information Technology, Sohar University,
3
CAIT, Faculty of Information Science and Technology, Universiti Kebangsaan Malaysia, Bangi, Selangor, Malaysia,
4
Planning and follow up department, University headquarter, University of Anbar,
5
Faculty of Information Science and Technology, Universiti Kebangsaan Malaysia, Bangi, Selangor, Malaysia,
6
Human-Centered Computing Research Lab, Universiti Utara Malaysia, Kedah, Malaysia,
7
Biomedical Computing and Engineering Technology (BIOCORE) Applied Research Group, Faculty of Information and Communication
Technology, University Teknikal Malaysia Melaka, Malaysia
8
Department of Computer, Collage of Education, AL-Iraqia University, IRAQ
*Corresponding Author Email: fahadtaha37@yahoo.com
Abstract
User Datagram Protocol (UDP) and Transmission Control Protocol (TCP) are a transportation layer routing protocols which are considered
of the core protocols of the internet protocol suite. The behaviour of these routing protocols with different network metrics and scenarios
is still not very clear. Therefore, this paper presents a comparison of the performance of both TCP and UDP to precisely determine which
of these protocols is better. Network Simulator version 2.35 (NS2) is utilized to analyse and evaluate the performance for both TCP and
UDP protocols varying in the packet size and the bandwidth. In this study, we have used two scenarios, in the first scenario the bandwidth
has been changed with fixed packet size and in the second scenario the packet size has been changed with fixed bandwidth to precisely
verify the performance of these protocols. These protocols were examined in terms of the rate end-to-end delay, rate throughput, packet
delivery ratio, and packet loss ratio
Keywords: UDP, TCP, Different simulation scenarios, NS2
1. Introduction
A computer network is a service that uses to share audio, video and
photo and other data between the laptops, computers and any smart
devices can connect to the network. It is also used to share the
network resources like the printer. TCP and UDP protocols are
approved to work on transport layer of a network. They handle with
the data differently [1]. TCP uses a connection oriented way to
handle the data thus provides a very reliable way of handling
messaging or information where it guarantees the delivery of the
message. If there is some error in the transmission, the packet will
be automatically re-sent over the network [2]. UDP utilizes a simple
transport model with a minimum of protocol technique. Computer
applications with the UDP can transmit messages, in this situation,
indicated as an datagrams, and also can send voices and videos [3].
In [4], the authors have been presented a performance comparison
among UDP and TCP in MANET to evaluate the conduct of DSDV,
DSR, and AODV protocols. They implemented the comparison
between the protocols using NS2 to analyze protocols performance,
where the results have shown that TCP in some mobility models is
outperformed the UDP in terms of throughput. Also, the DSDV has
shown lowest delay in all simulation for UDP. This study [5] has
provided performance assessment among DSR and AODV
protocols in the mobility paradigm with UDP and TCP traffic
sources. The results have been referred that the performance of
AODV protocol is outperformed the performance of DSR protocol
in the high mobility environments. Moreover, in [6] the authors
have provided a performance comparison among UDP and TCP for
TORA and OLSR in various mobility conditions. The authors used
NS2 simulator to evaluate and analyze protocols performance based
on the various performance measures like throughput, packet
delivery percentage and end-to-end delay. The results have referred
that TCP is outperformed UDP in terms of the throughput.
Furthermore, TORA protocol in UDP is outperformed TCP in the
PDR. However, there are many comparisons of routing protocols
but still, there is a need to carefully study the protocol performance
in several scenarios. For instance, an improper routing protocol for
the specific network scenario result in degraded performance of that
network. Wherein in [7], the authors have presented a comparison
between OLSR and LAR protocols for detecting the forest fire and
results showed that LAR has outperformed OLSR. In this regard, a
review of routing protocols has been presented in the surveillance
of the forest fire and study the performance of those protocols in
this disaster [8]. Moreover, a comparison among DSDV, AODV,
and DSR has been presented with a different number of nodes in
[9].