MCSE Lab, NTUT, TAIWAN 1
Mobile Computing & Software Engineering Lab
Application Interface to Protocols
Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Taipei, TAIWAN
Application Interface to Protocols Chuan-Ming Liu Computer Science - - PowerPoint PPT Presentation
Mobile Computing & Software Engineering Lab Application Interface to Protocols Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Taipei, TAIWAN MCSE Lab, NTUT, TAIWAN 1 Mobile Computing
MCSE Lab, NTUT, TAIWAN 1
Mobile Computing & Software Engineering Lab
Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Taipei, TAIWAN
MCSE Lab, NTUT, TAIWAN 2
Mobile Computing & Software Engineering Lab
Graphical view Loosely specified protocol software interface Interface functionality Conceptual interface specification System calls Two basic approaches to network communication Basic I/O functions in Linux Using Linux I/O with TCP/IP
MCSE Lab, NTUT, TAIWAN 3
Mobile Computing & Software Engineering Lab
applications TCP/UDP IP hardware sockets user process kernel
MCSE Lab, NTUT, TAIWAN 4
Mobile Computing & Software Engineering Lab
MCSE Lab, NTUT, TAIWAN 5
Mobile Computing & Software Engineering Lab
design to operate in a multi-vendor environment avoid choosing any vendor’s internal data representation avoid specifying the interface in terms of features available only on a single vendor’s OS
MCSE Lab, NTUT, TAIWAN 6
Mobile Computing & Software Engineering Lab
Flexibility Tolerance
designer can make the interface details different for each OS
MCSE Lab, NTUT, TAIWAN 7
Mobile Computing & Software Engineering Lab
UNIX: socket API, socket interface, or sockets MS Window: window sockets AT&T: acronym TLI
MCSE Lab, NTUT, TAIWAN 8
Mobile Computing & Software Engineering Lab
Allocate local resources for communication Specify local and remote communication endpoints Initiate a connection (client) Wait for an incoming connection (server) Send or receive data Determine when data arrives Generate urgent data
MCSE Lab, NTUT, TAIWAN 9
Mobile Computing & Software Engineering Lab
Handle incoming urgent data Terminate a connection gracefully Handle connection termination from the remote site Abort communication Handle error conditions or a connection abort Release local resource when communication finishes
MCSE Lab, NTUT, TAIWAN 10
Mobile Computing & Software Engineering Lab
MCSE Lab, NTUT, TAIWAN 11
Mobile Computing & Software Engineering Lab
Mechanism that most OS’s use to transfer control between applications and OS procedures Like function calls (for a programmer)
MCSE Lab, NTUT, TAIWAN 12
Mobile Computing & Software Engineering Lab
System functions called by applications OS kernel containing TCP/IP protocol software
Applica- tion 1 Applica- tion 2 Applica- tion n
MCSE Lab, NTUT, TAIWAN 13
Mobile Computing & Software Engineering Lab
New implementation on all conceptual
Using convention I/O primitives but overload them
MCSE Lab, NTUT, TAIWAN 14
Mobile Computing & Software Engineering Lab
close read write lseek ioctl
MCSE Lab, NTUT, TAIWAN 15
Mobile Computing & Software Engineering Lab
the set of file descriptor for application to use read and write system calls to with new network descriptor