The UNIX Operating System

TOP

UP


Ray Seyfarth

ORCA


Computer Science

COST

USM




Connectionless vs Connection-Oriented Servers


  • Programmer can choose a connection-oriented server or a connectionless server

  • User Datagram Protocol (UDP)
    connectionless
    a single socket can send and receive packets from many different computers
    best effort delivery
    some packets may be lost
    some packets may arrive out of order

  • Transmission Control Protocol
    connection-oriented
    a client must connect a socket to a server
    TCP socket provides bidirectional channel between client and server
    Lost data is re-transmitted
    Data is delivered in-order
    Data is delivered as a stream of bytes
    TCP uses flow control

  • It is simple for a single UDP server to accept data from multiple clients and reply

  • It is easier to cope with network problems using TCP


University of Southern Mississippi
Ray.Seyfarth@usm.edu
Updated 20:05 Jun 5, 2000