3
Socket ProgrammingSocket Programming
–
development of client/server development of client/server application(sapplication(s) that) thatcommunicate using socketscommunicate using sockets
•
developer has control of everything on applicationdeveloper has control of everything on applicationside but has little control of transport side of socketside but has little control of transport side of socket
•
only control on transport-layer side is
(1) choice of transport protocol (TCP or UDP)(2) control over a few transport-layer parameters e.g.max buffer and max segment size
Socket Programming (cont.)
Socket programming refers to programming at the application level/layer!
Socket programming refers to programming at the application leveSocket programming refers to programming at the application level/layer!l/layer!
TCP vs. UDP inTCP vs. UDP inSocket ProgrammingSocket Programming
–
to decide which transport-layer protocol, i.e. whichtype of socket, our application should use, we needto understand how TCP and UDP differ in terms of
•
reliabilityreliability
•
timingtiming
•
overheadoverhead