SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
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

Weitere Àhnliche Inhalte

Ähnlich wie 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
 
TCP IP
TCP IP TCP IP
TCP IP muh kemal
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocolN.Jagadish Kumar
 
"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
 
Transport layer
Transport layerTransport layer
Transport layerSisir Ghosh
 
Chapter3 transport
Chapter3 transportChapter3 transport
Chapter3 transportDiego Corrales
 

Ähnlich wie 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
 

KĂŒrzlich hochgeladen

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
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
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxDavid Douglas School District
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
TỔNG ÔN TáșŹP THI VÀO LỚP 10 MÔN TIáșŸNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGở Â...
TỔNG ÔN TáșŹP THI VÀO LỚP 10 MÔN TIáșŸNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGở Â...TỔNG ÔN TáșŹP THI VÀO LỚP 10 MÔN TIáșŸNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGở Â...
TỔNG ÔN TáșŹP THI VÀO LỚP 10 MÔN TIáșŸNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGở Â...Nguyen Thanh Tu Collection
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

KĂŒrzlich hochgeladen (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
TỔNG ÔN TáșŹP THI VÀO LỚP 10 MÔN TIáșŸNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGở Â...
TỔNG ÔN TáșŹP THI VÀO LỚP 10 MÔN TIáșŸNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGở Â...TỔNG ÔN TáșŹP THI VÀO LỚP 10 MÔN TIáșŸNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGở Â...
TỔNG ÔN TáșŹP THI VÀO LỚP 10 MÔN TIáșŸNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGở Â...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

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