SlideShare a Scribd company logo
1 of 11
Download to read offline
User
User Datagram
Datagram Protocol (UDP)
Protocol (UDP)
Srinidhi Varadarajan
UDP: The User
UDP: The User Datagram
Datagram Protocol
Protocol
z UDP is another transport protocol in the
TCP/IP suite
z UDP provides an unreliable datagram
service
– Packets may be lost or delivered out of order
– Users exchange datagrams (not streams)
– Connection-less
– Not buffered -- UDP accepts data and transmits
immediately (no buffering before transmission)
– Full duplex -- concurrent transfers can take
place in both directions
UDP Datagram Format
UDP Datagram Format
Source Port Destination Port
Data
0 4 8 16 24 31
Message Length Checksum
UDP Header Fields
UDP Header Fields
z UDP Destination Port: identifies
destination process
z UDP Source Port: optional -- identifies
source process for replies, or zero
z Message Length: length of datagram in
bytes, including header and data
z Checksum: optional -- 16-bit checksum
over header and data, or zero
time
UDP Versus TCP (1)
UDP Versus TCP (1)
z Choice of UDP versus TCP is based on:
– Functionality
– Performance
z Performance
– TCP’s window-based flow control scheme
leads to bursty bulk transfers (not rate based)
– TCP’s “slow start” algorithm can reduce
throughput
– TCP has extra overhead per segment
– UDP can send small, inefficient datagrams
UDP Versus TCP (2)
UDP Versus TCP (2)
z Reliability
– TCP provides reliable, in-order transfers
– UDP provides unreliable service -- application
must accept or deal with
• Packet loss due to overflows and errors
• Out-of-order datagrams
z Multicast and broadcast
– Supported only by UDP
– TCP’s error control scheme does not lend
itself to reliable multicast
z Data size
– UDP datagrams limited to IP MTU (64KB)
UDP Versus TCP (3)
UDP Versus TCP (3)
z Application complexity
– Application-level framing can be difficult using
TCP because of the Nagle algorithm
– Nagle algorithm controls when TCP segments
are sent to use IP datagrams efficiently
– But, data may be received and read by
applications in different units than how it was
sent
Written
time
Read
UDP versus TCP (4)
UDP versus TCP (4)
z Which is used for ...
– HyperText Transfer Protocol (HTTP)?
– File Transfer Protocol (FTP)?
– Telnet?
– Post Office Protocol (POP)?
– Remote WHO (rwho)?
– MBONE audio/video?
– Real Player?
– Network File System (NFS)?
“Middleware” Model (1)
“Middleware” Model (1)
Presentation
Application
Transport
Network
Data Link
Application
Physical
Network API
Presentation
Application
Transport
Network
Data Link
Physical
Application
Middleware
Alternate API
“Middleware” Model (2)
“Middleware” Model (2)
z Higher-level services can be provided for
application development by so called
“middleware”
– May be built above the operating system (and
run on various operating systems)
– May be part of the operating system
z Possible functions: messaging,
distributed object management, directory
services,
user-defined data types, composite data
types, remote procedure calls (RPC),
alternate communication abstractions
You should now be able to ...
You should now be able to ...
z Distinguish between services, interfaces,
and implementations related to protocols
z Identify the relationship between the
TCP/IP protocol suite and the OSI
Reference Model
z Identify the functions of the key protocols
in the TCP/IP protocol suite
z Identify the differences between transport
services provided by TCP and UDP
z Match application needs to services
provided by TCP and UDP

More Related Content

Similar to mrutu sammary 1.pdf

LECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.pptLECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.pptMonirHossain707319
 
Computer networks Module 3 Transport layer
Computer networks Module 3 Transport layerComputer networks Module 3 Transport layer
Computer networks Module 3 Transport layerclaudle200415
 
Chapter_3_v8.1.pdf
Chapter_3_v8.1.pdfChapter_3_v8.1.pdf
Chapter_3_v8.1.pdfLNhi89
 
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 algorithmAyesha Tahir
 
UDP and TCP header.ppt
UDP and TCP header.pptUDP and TCP header.ppt
UDP and TCP header.pptnehayarrapothu
 
10. tcp ip and do d model
10. tcp ip and do d model10. tcp ip and do d model
10. tcp ip and do d modelSwarndeep Singh
 
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 protocolMushtaque Khan Noonari
 
Unit 4 tansport layer in the internat
Unit 4 tansport layer in the internatUnit 4 tansport layer in the internat
Unit 4 tansport layer in the internatKritika Purohit
 
User Datagram protocol For Msc CS
User Datagram protocol For Msc CSUser Datagram protocol For Msc CS
User Datagram protocol For Msc CSThanveen
 
"Internet Protocol Suite" prepared by Szymon M. from Poland
"Internet Protocol Suite" prepared by Szymon M. from Poland"Internet Protocol Suite" prepared by Szymon M. from Poland
"Internet Protocol Suite" prepared by Szymon M. from Polandirenazd
 
ETE405-lec7.pptx
ETE405-lec7.pptxETE405-lec7.pptx
ETE405-lec7.pptxmashiur
 
1.1.2 - Concept of Network and TCP_IP Model (2).pptx
1.1.2 - Concept of Network and TCP_IP Model (2).pptx1.1.2 - Concept of Network and TCP_IP Model (2).pptx
1.1.2 - Concept of Network and TCP_IP Model (2).pptxVINAYTANWAR18
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3Roman Brovko
 

Similar to mrutu sammary 1.pdf (20)

LECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.pptLECTURE-Transport-Layer_lec.ppt
LECTURE-Transport-Layer_lec.ppt
 
Computer networks Module 3 Transport layer
Computer networks Module 3 Transport layerComputer networks Module 3 Transport layer
Computer networks Module 3 Transport layer
 
Chapter_3_v8.1.pdf
Chapter_3_v8.1.pdfChapter_3_v8.1.pdf
Chapter_3_v8.1.pdf
 
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
 
UDP and TCP header.ppt
UDP and TCP header.pptUDP and TCP header.ppt
UDP and TCP header.ppt
 
10. tcp ip and do d model
10. tcp ip and do d model10. tcp ip and do d model
10. tcp ip and do d model
 
TCP AND UDP
TCP AND UDP TCP AND UDP
TCP AND UDP
 
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
 
Unit 4 tansport layer in the internat
Unit 4 tansport layer in the internatUnit 4 tansport layer in the internat
Unit 4 tansport layer in the internat
 
User Datagram protocol For Msc CS
User Datagram protocol For Msc CSUser Datagram protocol For Msc CS
User Datagram protocol For Msc CS
 
Udp vs-tcp
Udp vs-tcpUdp vs-tcp
Udp vs-tcp
 
TCP IP
TCP IP TCP IP
TCP IP
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
"Internet Protocol Suite" prepared by Szymon M. from Poland
"Internet Protocol Suite" prepared by Szymon M. from Poland"Internet Protocol Suite" prepared by Szymon M. from Poland
"Internet Protocol Suite" prepared by Szymon M. from Poland
 
ETE405-lec7.pptx
ETE405-lec7.pptxETE405-lec7.pptx
ETE405-lec7.pptx
 
1.1.2 - Concept of Network and TCP_IP Model (2).pptx
1.1.2 - Concept of Network and TCP_IP Model (2).pptx1.1.2 - Concept of Network and TCP_IP Model (2).pptx
1.1.2 - Concept of Network and TCP_IP Model (2).pptx
 
COMPUTER NETWORKS UNIT 4
COMPUTER NETWORKS UNIT 4COMPUTER NETWORKS UNIT 4
COMPUTER NETWORKS UNIT 4
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
Transport layer
Transport layerTransport layer
Transport layer
 
Chapter3 transport
Chapter3 transportChapter3 transport
Chapter3 transport
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Recently uploaded (20)

INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 

mrutu sammary 1.pdf

  • 1. User User Datagram Datagram Protocol (UDP) Protocol (UDP) Srinidhi Varadarajan
  • 2. UDP: The User UDP: The User Datagram Datagram Protocol Protocol z UDP is another transport protocol in the TCP/IP suite z UDP provides an unreliable datagram service – Packets may be lost or delivered out of order – Users exchange datagrams (not streams) – Connection-less – Not buffered -- UDP accepts data and transmits immediately (no buffering before transmission) – Full duplex -- concurrent transfers can take place in both directions
  • 3. UDP Datagram Format UDP Datagram Format Source Port Destination Port Data 0 4 8 16 24 31 Message Length Checksum
  • 4. UDP Header Fields UDP Header Fields z UDP Destination Port: identifies destination process z UDP Source Port: optional -- identifies source process for replies, or zero z Message Length: length of datagram in bytes, including header and data z Checksum: optional -- 16-bit checksum over header and data, or zero
  • 5. time UDP Versus TCP (1) UDP Versus TCP (1) z Choice of UDP versus TCP is based on: – Functionality – Performance z Performance – TCP’s window-based flow control scheme leads to bursty bulk transfers (not rate based) – TCP’s “slow start” algorithm can reduce throughput – TCP has extra overhead per segment – UDP can send small, inefficient datagrams
  • 6. UDP Versus TCP (2) UDP Versus TCP (2) z Reliability – TCP provides reliable, in-order transfers – UDP provides unreliable service -- application must accept or deal with • Packet loss due to overflows and errors • Out-of-order datagrams z Multicast and broadcast – Supported only by UDP – TCP’s error control scheme does not lend itself to reliable multicast z Data size – UDP datagrams limited to IP MTU (64KB)
  • 7. UDP Versus TCP (3) UDP Versus TCP (3) z Application complexity – Application-level framing can be difficult using TCP because of the Nagle algorithm – Nagle algorithm controls when TCP segments are sent to use IP datagrams efficiently – But, data may be received and read by applications in different units than how it was sent Written time Read
  • 8. UDP versus TCP (4) UDP versus TCP (4) z Which is used for ... – HyperText Transfer Protocol (HTTP)? – File Transfer Protocol (FTP)? – Telnet? – Post Office Protocol (POP)? – Remote WHO (rwho)? – MBONE audio/video? – Real Player? – Network File System (NFS)?
  • 9. “Middleware” Model (1) “Middleware” Model (1) Presentation Application Transport Network Data Link Application Physical Network API Presentation Application Transport Network Data Link Physical Application Middleware Alternate API
  • 10. “Middleware” Model (2) “Middleware” Model (2) z Higher-level services can be provided for application development by so called “middleware” – May be built above the operating system (and run on various operating systems) – May be part of the operating system z Possible functions: messaging, distributed object management, directory services, user-defined data types, composite data types, remote procedure calls (RPC), alternate communication abstractions
  • 11. You should now be able to ... You should now be able to ... z Distinguish between services, interfaces, and implementations related to protocols z Identify the relationship between the TCP/IP protocol suite and the OSI Reference Model z Identify the functions of the key protocols in the TCP/IP protocol suite z Identify the differences between transport services provided by TCP and UDP z Match application needs to services provided by TCP and UDP