Client-Server Programming
Spring Semester, 2005 Protocol |
||
---|---|---|
© 2005, All Rights Reserved, SDSU & Roger Whitney San Diego State University -- This page last updated 17-Feb-05 |
Copyright ©, All rights reserved. 2005 SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA 92182-7700 USA. OpenContent ( http://www.opencontent.org/opl.shtml) license defines the copyright on this document.
CS 580 Spring 05 | Doc 8, Protocol Slide # 2 |
Communication between client and server
Good protocols are hard to design
Requirements for a "good protocol":
CS 580 Spring 05 | Doc 8, Protocol Slide # 3 |
Every bit of data sent in either direction has to have its place in the protocol description.
Protocol is a Language
Common formal description:
Format of the description language needs to be part of the protocol document.
Examples are important
CS 580 Spring 05 | Doc 8, Protocol Slide # 4 |
The protocol must cover all possible situations.
CS 580 Spring 05 | Doc 8, Protocol Slide # 5 |
Both clients and servers are computer programs.
A computer program's IQ is generally 0.
Design goals:
CS 580 Spring 05 | Doc 8, Protocol Slide # 6 |
Different groups may write clients and servers at different times.
Central registry for Internet protocols
Self regulating:
Official:
CS 580 Spring 05 | Doc 8, Protocol Slide # 7 |
Two basic types
Examples
Client and server both send information to each other concurrently.
Examples
A hybrid protocol is also possible
CS 580 Spring 05 | Doc 8, Protocol Slide # 8 |
Protocol design is difficult!
Learn from examples
Copyright ©, All rights reserved.
2005 SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA 92182-7700 USA.
OpenContent license defines the copyright on this document.