User Datagram Datagram Protocol (UDP) Protocol (UDP) User - - PowerPoint PPT Presentation

user datagram datagram protocol udp protocol udp user
SMART_READER_LITE
LIVE PREVIEW

User Datagram Datagram Protocol (UDP) Protocol (UDP) User - - PowerPoint PPT Presentation

User Datagram Datagram Protocol (UDP) Protocol (UDP) User Srinidhi Varadarajan UDP: The User Datagram Datagram Protocol Protocol UDP: The User z UDP is another transport protocol in the TCP/IP suite z UDP provides an unreliable datagram


slide-1
SLIDE 1

User User Datagram Datagram Protocol (UDP) Protocol (UDP)

Srinidhi Varadarajan

slide-2
SLIDE 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

slide-3
SLIDE 3

UDP Datagram Format UDP Datagram Format

Source Port Destination Port Data 4 8 16 24 31 Message Length Checksum

slide-4
SLIDE 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

  • ver header and data, or zero
slide-5
SLIDE 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

slide-6
SLIDE 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)

slide-7
SLIDE 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

slide-8
SLIDE 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)?

slide-9
SLIDE 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

slide-10
SLIDE 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

slide-11
SLIDE 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