SlideShare une entreprise Scribd logo
1  sur  12
TCP And UDP
.Transmission Control Protocol
.User Datagram Protocol
What is difference between them?
Where are they used?
Why?
Mr. Mushtaque Khan Noonari 15TC55
Mr. Ishfaque Ahmed Abbasi 15TC38
Mr. Asad Shaikh 15TC43
Mr. Amir Laghari 15TC45
Quaid-e-Awam University Engineering Science &
Technology Nawabshah
Deptt: Of Telecommunication
Contents
 Introduction
 Advantages of TCP
 Disadvantages of TCP
 Advantages of UDP
 Disadvantages of UDP
 Where are they used? Why?
 Conclusion
Introduction
 TCP and UDP works in Transport Layer of OSI
Model as well as TCP/IP Model
 TCP (Transmission Control Protocol) enables two
hosts to establish a connection and exchange
streams of data. TCP guarantees delivery of data
and also guarantees that packets will be delivered
in the same order in which they were sent.
 UDP (User Datagram Protocol) a connectionless
protocol that, like TCP, runs on top of IP networks.
Provides very few error recovery services, offering
instead a direct way to send and receive
datagrams over an IP network.
Advantages of TCP
 TCP does Flow Control and Congestion Control
 For a programmer: The operating system does
all the work. you just sit back and watch the
show. no need to have the same bugs in your
code that everyone else did on their first try; it's
all been figured out for you.
 Routers may notice TCP packets and treat them
specially. they can buffer and retransmit them
 TCP has good relative throughput on a modem
or a LAN.
Disadvantages of TCP
 TCP cannot be used for broadcast or multicast
transmission.
 TCP has no block boundaries; you must create your
own.
 For a programmer:
◦ OS might be buggy –as well TCP
◦ TCP may have lots of features you don't need. it may waste
bandwidth, time, or effort on ensuring things that are irrelevant to
the task at hand.
 Routers on the internet today are out of memory. they
can't pay much attention to TCP flying by, and try to
help it. design assumptions of TCP break down in this
environment.
Advantages of UDP
 Broadcast and multicast transmission are
available with UDP
 It doesn't restrict you to a connection based
communication model, so startup latency in
distributed applications is much lower.
 All flow control, transaction logging, etc is up
to user programs; implementation is not going
to get in your way. additionally, you only need
to implement and use the features you need.
 The recipient of UDP packets gets them
including block boundaries.
Disadvantages of UDP
 There are no guarantees with UDP. a packet
may not be delivered, or delivered twice, or
delivered out of order; you get no indication
of this unless the listening program at the
other end decides to say something.
 UDP has no flow control, Congestion Control.
implementation is the duty of user programs.
 Routers are quite careless with UDP. they
never retransmit it if it collides, and it seems
to be the first thing dropped when a router is
short on memory.
Where are they used? Why?
 TCP is used in HTTP, HTTPs, FTP, SMTP
Telnet etc...
 UDP is used in DNS, DHCP, TFTP, SNMP,
RIP, VOIP, Multi media, Online games
etc…
 Consider Multi media, if we use TCP
instead of UDP when ever pocket loss
occurred we get long delay to continue
watching/listening because TCP is
retransmitting lost packets and it takes
time
TCP vs. UDP Conclusion
 TCP use for multiplayer games and for data transfer
and UDP use to send opponent position update.
 TCP is generally a good choice, though, even with its
associated overhead. Most of the overhead is in the
connection. Therefore, if your application stays
connected for any length of time, then the cost is
mitigated. In addition, if you’re sending any quantity of
data, then it’s cheaper to use TCP’s built-in reliability,
ordering, and flow control instead of building your own.
 UDP is a good choice for multi Media like VoIP to
provide small jitter
Thank You

Contenu connexe

Tendances

Network protocols
Network protocolsNetwork protocols
Network protocols
Hemnath R.
 

Tendances (20)

Visual Cryptography
Visual CryptographyVisual Cryptography
Visual Cryptography
 
IP Security
IP SecurityIP Security
IP Security
 
Secure Socket Layer (SSL)
Secure Socket Layer (SSL)Secure Socket Layer (SSL)
Secure Socket Layer (SSL)
 
Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1
 
Network protocols
Network protocolsNetwork protocols
Network protocols
 
ElGamal Encryption Algoritham.pptx
ElGamal Encryption Algoritham.pptxElGamal Encryption Algoritham.pptx
ElGamal Encryption Algoritham.pptx
 
Data Encryption Standard (DES)
Data Encryption Standard (DES)Data Encryption Standard (DES)
Data Encryption Standard (DES)
 
PPP (Point to Point Protocol)
PPP (Point to Point Protocol)PPP (Point to Point Protocol)
PPP (Point to Point Protocol)
 
TCP/IP
TCP/IPTCP/IP
TCP/IP
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
Chapter 25
Chapter 25Chapter 25
Chapter 25
 
Tcp and udp
Tcp and udpTcp and udp
Tcp and udp
 
PGP.ppt
PGP.pptPGP.ppt
PGP.ppt
 
Cs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT VCs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT V
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Information Security & Cryptography
Information Security & CryptographyInformation Security & Cryptography
Information Security & Cryptography
 
Key management
Key managementKey management
Key management
 
IPV4 vs IPV6
IPV4 vs IPV6IPV4 vs IPV6
IPV4 vs IPV6
 
X.25
X.25X.25
X.25
 
Datalinklayer tanenbaum
Datalinklayer tanenbaumDatalinklayer tanenbaum
Datalinklayer tanenbaum
 

Similaire à TCP AND UDP

Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 FinalExploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
masoodnt10
 
User Datagram protocol For Msc CS
User Datagram protocol For Msc CSUser Datagram protocol For Msc CS
User Datagram protocol For Msc CS
Thanveen
 
What is the difference between udp and tcp internet protocols
What is the difference between udp and tcp internet protocols What is the difference between udp and tcp internet protocols
What is the difference between udp and tcp internet protocols
krupalipandya29
 

Similaire à TCP AND UDP (20)

Tcp and udp.transmission control protocol.user datagram protocol
Tcp and udp.transmission control protocol.user datagram protocolTcp and udp.transmission control protocol.user datagram protocol
Tcp and udp.transmission control protocol.user datagram protocol
 
Tcp vs udp difference and comparison diffen
Tcp vs udp   difference and comparison   diffenTcp vs udp   difference and comparison   diffen
Tcp vs udp difference and comparison diffen
 
CN Activity 3.pptx
CN Activity 3.pptxCN Activity 3.pptx
CN Activity 3.pptx
 
UDP and TCP header.ppt
UDP and TCP header.pptUDP and TCP header.ppt
UDP and TCP header.ppt
 
Xtc Pdiscussionv2
Xtc Pdiscussionv2Xtc Pdiscussionv2
Xtc Pdiscussionv2
 
TCP Section5
TCP Section5TCP Section5
TCP Section5
 
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 FinalExploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
 
User Datagram protocol For Msc CS
User Datagram protocol For Msc CSUser Datagram protocol For Msc CS
User Datagram protocol For Msc CS
 
What is the difference between udp and tcp internet protocols
What is the difference between udp and tcp internet protocols What is the difference between udp and tcp internet protocols
What is the difference between udp and tcp internet protocols
 
UDP and TCP Protocol & Encrytion and its algorithm
UDP and TCP Protocol & Encrytion and its algorithmUDP and TCP Protocol & Encrytion and its algorithm
UDP and TCP Protocol & Encrytion and its algorithm
 
Internet of Things Unit - 01 Part 3A.pptx
Internet of Things Unit - 01 Part 3A.pptxInternet of Things Unit - 01 Part 3A.pptx
Internet of Things Unit - 01 Part 3A.pptx
 
07 coms 525 tcpip - udp
07    coms 525 tcpip - udp07    coms 525 tcpip - udp
07 coms 525 tcpip - udp
 
Computer Communication Networks- TRANSPORT LAYER PROTOCOLS
Computer Communication Networks- TRANSPORT LAYER PROTOCOLSComputer Communication Networks- TRANSPORT LAYER PROTOCOLS
Computer Communication Networks- TRANSPORT LAYER PROTOCOLS
 
Feature satip3
Feature satip3Feature satip3
Feature satip3
 
Internet Video
Internet VideoInternet Video
Internet Video
 
UAV Data Link Design for Dependable Real-Time Communications
UAV Data Link Design for Dependable Real-Time CommunicationsUAV Data Link Design for Dependable Real-Time Communications
UAV Data Link Design for Dependable Real-Time Communications
 
Tcp vs udp
Tcp vs udpTcp vs udp
Tcp vs udp
 
Transport layer
Transport layerTransport layer
Transport layer
 
Mobile transport layer .
Mobile transport layer .Mobile transport layer .
Mobile transport layer .
 
Sky x technology
Sky x technologySky x technology
Sky x technology
 

Dernier

No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
Sheetaleventcompany
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
raffaeleoman
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
amilabibi1
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
Kayode Fayemi
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
Kayode Fayemi
 

Dernier (20)

Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptx
 
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, YardstickSaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
 
Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubs
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 

TCP AND UDP

  • 1. TCP And UDP .Transmission Control Protocol .User Datagram Protocol What is difference between them? Where are they used? Why? Mr. Mushtaque Khan Noonari 15TC55 Mr. Ishfaque Ahmed Abbasi 15TC38 Mr. Asad Shaikh 15TC43 Mr. Amir Laghari 15TC45 Quaid-e-Awam University Engineering Science & Technology Nawabshah Deptt: Of Telecommunication
  • 2. Contents  Introduction  Advantages of TCP  Disadvantages of TCP  Advantages of UDP  Disadvantages of UDP  Where are they used? Why?  Conclusion
  • 3. Introduction  TCP and UDP works in Transport Layer of OSI Model as well as TCP/IP Model  TCP (Transmission Control Protocol) enables two hosts to establish a connection and exchange streams of data. TCP guarantees delivery of data and also guarantees that packets will be delivered in the same order in which they were sent.  UDP (User Datagram Protocol) a connectionless protocol that, like TCP, runs on top of IP networks. Provides very few error recovery services, offering instead a direct way to send and receive datagrams over an IP network.
  • 4. Advantages of TCP  TCP does Flow Control and Congestion Control  For a programmer: The operating system does all the work. you just sit back and watch the show. no need to have the same bugs in your code that everyone else did on their first try; it's all been figured out for you.  Routers may notice TCP packets and treat them specially. they can buffer and retransmit them  TCP has good relative throughput on a modem or a LAN.
  • 5. Disadvantages of TCP  TCP cannot be used for broadcast or multicast transmission.  TCP has no block boundaries; you must create your own.  For a programmer: ◦ OS might be buggy –as well TCP ◦ TCP may have lots of features you don't need. it may waste bandwidth, time, or effort on ensuring things that are irrelevant to the task at hand.  Routers on the internet today are out of memory. they can't pay much attention to TCP flying by, and try to help it. design assumptions of TCP break down in this environment.
  • 6. Advantages of UDP  Broadcast and multicast transmission are available with UDP  It doesn't restrict you to a connection based communication model, so startup latency in distributed applications is much lower.  All flow control, transaction logging, etc is up to user programs; implementation is not going to get in your way. additionally, you only need to implement and use the features you need.  The recipient of UDP packets gets them including block boundaries.
  • 7. Disadvantages of UDP  There are no guarantees with UDP. a packet may not be delivered, or delivered twice, or delivered out of order; you get no indication of this unless the listening program at the other end decides to say something.  UDP has no flow control, Congestion Control. implementation is the duty of user programs.  Routers are quite careless with UDP. they never retransmit it if it collides, and it seems to be the first thing dropped when a router is short on memory.
  • 8.
  • 9.
  • 10. Where are they used? Why?  TCP is used in HTTP, HTTPs, FTP, SMTP Telnet etc...  UDP is used in DNS, DHCP, TFTP, SNMP, RIP, VOIP, Multi media, Online games etc…  Consider Multi media, if we use TCP instead of UDP when ever pocket loss occurred we get long delay to continue watching/listening because TCP is retransmitting lost packets and it takes time
  • 11. TCP vs. UDP Conclusion  TCP use for multiplayer games and for data transfer and UDP use to send opponent position update.  TCP is generally a good choice, though, even with its associated overhead. Most of the overhead is in the connection. Therefore, if your application stays connected for any length of time, then the cost is mitigated. In addition, if you’re sending any quantity of data, then it’s cheaper to use TCP’s built-in reliability, ordering, and flow control instead of building your own.  UDP is a good choice for multi Media like VoIP to provide small jitter