SlideShare a Scribd company logo
There are two types of Internet Protocol (IP) traffic. They are TCP or Transmission
Control Protocol and UDP or User Datagram Protocol. TCP is connection oriented –
once a connection is established, data can be sent bidirectional. UDP is a simpler,
connectionless Internet protocol. Multiple messages are sent as packets in chunks
using UDP
TCP UDP
Acronym for Transmission Control Protocol User Datagram Protocol or
Universal Datagram Protocol
Connection TCP is a connection-oriented
protocol.
UDP is a connectionless
protocol.
Function As a message makes its way
across the internet from one
computer to another. This is
connection based.
UDP is also a protocol used in
message transport or transfer.
This is not connection based
which means that one program
can send a load of packets to
another and that would be the
end of the relationship.
Usage TCP is suited for applications that
require high reliability, and
transmission time is relatively less
critical.
UDP is suitable for applications
that need fast, efficient
transmission, such as games.
UDP's stateless nature is also
useful for servers that answer
small queries from huge
numbers of clients.
Use by other
protocols
HTTP, HTTPs, FTP, SMTP,
Telnet
DNS, DHCP, TFTP, SNMP,
RIP, VOIP.
Ordering of data
packets
TCP rearranges data packets in
the order specified.
UDP has no inherent order as
all packets are independent of
each other. If ordering is
required, it has to be managed
by the application layer.
Speed of transfer The speed for TCP is slower than UDP is faster because error
UDP. recovery is not attempted. It is
a "best effort" protocol.
Reliability There is absolute guarantee that
the data transferred remains intact
and arrives in the same order in
which it was sent.
There is no guarantee that the
messages or packets sent
would reach at all.
Header Size TCP header size is 20 bytes UDP Header size is 8 bytes.
Common Header
Fields
Source port, Destination port,
Check Sum
Source port, Destination port,
Check Sum
Streaming of data Data is read as a byte stream, no
distinguishing indications are
transmitted to signal message
(segment) boundaries.
Packets are sent individually
and are checked for integrity
only if they arrive. Packets
have definite boundaries which
are honored upon receipt,
meaning a read operation at
the receiver socket will yield an
entire message as it was
originally sent.
Weight TCP is heavy-weight. TCP
requires three packets to set up a
socket connection, before any
user data can be sent. TCP
handles reliability and congestion
control.
UDP is lightweight. There is no
ordering of messages, no
tracking connections, etc. It is a
small transport layer designed
on top of IP.
Data Flow Control TCP does Flow Control. TCP
requires three packets to set up a
socket connection, before any
user data can be sent. TCP
handles reliability and congestion
control.
UDP does not have an option
for flow control
Error Checking TCP does error checking and
error recovery. Erroneous packets
are retransmitted from the source
to the destination.
UDP does error checking but
simply discards erroneous
packets. Error recovery is not
attempted.
Fields 1. Sequence Number, 2. AcK
number, 3. Data offset, 4.
Reserved, 5. Control bit, 6.
Window, 7. Urgent Pointer 8.
1. Length, 2. Source port, 3.
Destination port, 4. Check Sum
Options, 9. Padding, 10. Check
Sum, 11. Source port, 12.
Destination port
Acknowledgement Acknowledgement segments No Acknowledgment
Handshake SYN, SYN-ACK, ACK No handshake (connectionless
protocol)

More Related Content

PDF
What is the difference between udp and tcp internet protocols
PDF
Analysis of Link State Resource Reservation Protocol for Congestion Managemen...
PPTX
Tcp and udp ports
PPTX
DOCX
Udp vs-tcp
PPTX
Tcp and udp.transmission control protocol.user datagram protocol
PDF
Tcp vs udp difference and comparison diffen
PPTX
Tcp and udp
What is the difference between udp and tcp internet protocols
Analysis of Link State Resource Reservation Protocol for Congestion Managemen...
Tcp and udp ports
Udp vs-tcp
Tcp and udp.transmission control protocol.user datagram protocol
Tcp vs udp difference and comparison diffen
Tcp and udp

What's hot (20)

PPTX
TCP and UDP
PPTX
TCP vs UDP / Sumiet23
PPTX
Introduction of tcp, ip & udp
DOC
Tcp Udp Notes
PPT
User Datagram protocol For Msc CS
PDF
TCP Vs UDP
DOC
User datagram protocol
PDF
UDP - User Datagram Protocol
PDF
Xtc Pdiscussionv2
PPTX
PPTX
TCP/IP 3-way Handshake
PPTX
TCP/IP and UDP protocols
PDF
Transaction TCP
PPT
Unit III IPV6 UDP
PDF
TCP Theory
PPTX
User datagram protocol (udp)
PPTX
Transport layer
PPT
Tcp Udp Icmp And The Transport Layer
PDF
Mobile computing : Indirect TCP
TCP and UDP
TCP vs UDP / Sumiet23
Introduction of tcp, ip & udp
Tcp Udp Notes
User Datagram protocol For Msc CS
TCP Vs UDP
User datagram protocol
UDP - User Datagram Protocol
Xtc Pdiscussionv2
TCP/IP 3-way Handshake
TCP/IP and UDP protocols
Transaction TCP
Unit III IPV6 UDP
TCP Theory
User datagram protocol (udp)
Transport layer
Tcp Udp Icmp And The Transport Layer
Mobile computing : Indirect TCP
Ad

Similar to Tcp vs udp (20)

PPTX
Presentation of the details of tcp and udp protocols
PDF
TCP/IP & UDP
PPTX
What is tcp
PDF
TCP and UDP.pdf55555555555555555555555555555
PDF
Transport layer services
PPTX
Unit 5.Transport Layer.pptx
PPTX
Computer networks transport layer
DOCX
UDP and TCP Protocol & Encrytion and its algorithm
PPTX
TCP_UDP_presention_for_network_transtion.pptx
PPTX
Online TCP-IP Networking Assignment Help
PPT
UDP and TCP header.ppt
PPTX
Module 3IP-based networks use eithe.pptx
PPTX
NETWORK PROTOCOLS lecture one introdection to protocols
PPTX
Unit 6 NAHI aa rha hai na ki koi baat nhi hai
PPTX
user development programing in networking UDP.pptx
PPTX
A Comparative Study of TCP & UDP Protocols
PPTX
Transport layer protocol
PPTX
#KPC #CST #Protocols
PPTX
Reliable vs Fast: Understanding TCP and UDP Protocols
PDF
DIFFERENT TYPES OF TRANSPORT LAYER PROTOCOLS
Presentation of the details of tcp and udp protocols
TCP/IP & UDP
What is tcp
TCP and UDP.pdf55555555555555555555555555555
Transport layer services
Unit 5.Transport Layer.pptx
Computer networks transport layer
UDP and TCP Protocol & Encrytion and its algorithm
TCP_UDP_presention_for_network_transtion.pptx
Online TCP-IP Networking Assignment Help
UDP and TCP header.ppt
Module 3IP-based networks use eithe.pptx
NETWORK PROTOCOLS lecture one introdection to protocols
Unit 6 NAHI aa rha hai na ki koi baat nhi hai
user development programing in networking UDP.pptx
A Comparative Study of TCP & UDP Protocols
Transport layer protocol
#KPC #CST #Protocols
Reliable vs Fast: Understanding TCP and UDP Protocols
DIFFERENT TYPES OF TRANSPORT LAYER PROTOCOLS
Ad

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Construction Project Organization Group 2.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
web development for engineering and engineering
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Well-logging-methods_new................
PPTX
Sustainable Sites - Green Building Construction
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
additive manufacturing of ss316l using mig welding
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Construction Project Organization Group 2.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Embodied AI: Ushering in the Next Era of Intelligent Systems
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
bas. eng. economics group 4 presentation 1.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
web development for engineering and engineering
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Mechanical Engineering MATERIALS Selection
Operating System & Kernel Study Guide-1 - converted.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Well-logging-methods_new................
Sustainable Sites - Green Building Construction
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
additive manufacturing of ss316l using mig welding

Tcp vs udp

  • 1. There are two types of Internet Protocol (IP) traffic. They are TCP or Transmission Control Protocol and UDP or User Datagram Protocol. TCP is connection oriented – once a connection is established, data can be sent bidirectional. UDP is a simpler, connectionless Internet protocol. Multiple messages are sent as packets in chunks using UDP TCP UDP Acronym for Transmission Control Protocol User Datagram Protocol or Universal Datagram Protocol Connection TCP is a connection-oriented protocol. UDP is a connectionless protocol. Function As a message makes its way across the internet from one computer to another. This is connection based. UDP is also a protocol used in message transport or transfer. This is not connection based which means that one program can send a load of packets to another and that would be the end of the relationship. Usage TCP is suited for applications that require high reliability, and transmission time is relatively less critical. UDP is suitable for applications that need fast, efficient transmission, such as games. UDP's stateless nature is also useful for servers that answer small queries from huge numbers of clients. Use by other protocols HTTP, HTTPs, FTP, SMTP, Telnet DNS, DHCP, TFTP, SNMP, RIP, VOIP. Ordering of data packets TCP rearranges data packets in the order specified. UDP has no inherent order as all packets are independent of each other. If ordering is required, it has to be managed by the application layer. Speed of transfer The speed for TCP is slower than UDP is faster because error
  • 2. UDP. recovery is not attempted. It is a "best effort" protocol. Reliability There is absolute guarantee that the data transferred remains intact and arrives in the same order in which it was sent. There is no guarantee that the messages or packets sent would reach at all. Header Size TCP header size is 20 bytes UDP Header size is 8 bytes. Common Header Fields Source port, Destination port, Check Sum Source port, Destination port, Check Sum Streaming of data Data is read as a byte stream, no distinguishing indications are transmitted to signal message (segment) boundaries. Packets are sent individually and are checked for integrity only if they arrive. Packets have definite boundaries which are honored upon receipt, meaning a read operation at the receiver socket will yield an entire message as it was originally sent. Weight TCP is heavy-weight. TCP requires three packets to set up a socket connection, before any user data can be sent. TCP handles reliability and congestion control. UDP is lightweight. There is no ordering of messages, no tracking connections, etc. It is a small transport layer designed on top of IP. Data Flow Control TCP does Flow Control. TCP requires three packets to set up a socket connection, before any user data can be sent. TCP handles reliability and congestion control. UDP does not have an option for flow control Error Checking TCP does error checking and error recovery. Erroneous packets are retransmitted from the source to the destination. UDP does error checking but simply discards erroneous packets. Error recovery is not attempted. Fields 1. Sequence Number, 2. AcK number, 3. Data offset, 4. Reserved, 5. Control bit, 6. Window, 7. Urgent Pointer 8. 1. Length, 2. Source port, 3. Destination port, 4. Check Sum
  • 3. Options, 9. Padding, 10. Check Sum, 11. Source port, 12. Destination port Acknowledgement Acknowledgement segments No Acknowledgment Handshake SYN, SYN-ACK, ACK No handshake (connectionless protocol)