ProtocolHTTPPOP - CS 580 Client-Server Programming Spring...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 580 Client-Server Programming Spring Semester, 2010 Doc 13 Protocol, HTTP, POP, Gnutella 8 March, 2010 Copyright ©, All rights reserved. 2010 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.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
References 2 Hypertext Transfer Protocol - HTTP/1.0, Berners-Lee, Fielding, Nielson, rfc1945, http:// www.w3.org/Protocols/rfc1945/rfc1945 Hypertext Transfer Protocol -- HTTP/1.1, Fielding, Gettys, Mogul, Masinter, Leach, Berners-Lee, rfc2616, http://www.w3.org/Protocols/rfc2616/rfc2616.html Uniform Resource Identifiers (URI): Generic Syntax, Berners-Lee, Fielding, Masinter, rfc2396 http://www.rfc-editor.org/rfc/rfc2396.txt RFC 1939, http://www.rfc-editor.org/rfc/rfc1939.txt The Gnutella Protocol Specification v0.4, Document Revision 1.2, http://www9.limewire.com/ developer/gnutella_protocol_0.4.pdf Reading Post Office Protocol RFC 1939, http://www.rfc-editor.org/rfc/rfc1939.txt
Background image of page 2
Protocol 3 Requirements for a "good protocol" Well defined Complete Parsable Extendable Available protocol document
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Assignment 3 Protocol 4 Client Command Server Response login;screenName:foo;password:bar;; ok:success;; transmitMessage:Hello World;; ok:success;; transmitMessage:Hello \\2;; ok:success;; messages;block:1;; ok:2; text:Hello \\2:sender:foo:time:02/03/2009 13\:29\:45; text:Hello World:sender:foo:time:02/03/2009 13\:29\: 42;; fuss;; error:Invalid command f;; quit;; ok:quit;;
Background image of page 4
Well defined 5 Every bit of data sent in either direction has to have its place in the protocol description. Protocol is a Language Common formal description: BNF and Augmented BNF Format of the description language needs to be part of the protocol document. Examples are important
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Complete 6 The protocol must cover all possible situations. Garbage data Old client or server (different protocol versions) Illegal requests Boundary conditions Etc.
Background image of page 6
Parsable 7 Both clients and servers are computer programs. A computer program's IQ is generally 0. Design goals Distinct information packets or messages Allow parsing independent of semantics Consistency Allow for code reuse Flexibility
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Allow parsing independent of semantics 8 How does the server parse each set of commands? The client parse each response Client foo Command Server Response login;nickname:foo;password:foopass;; ok:success;; waitingList;; ok:1;nickname:bar;; startconversation:bar;; acceptconversation;; (assuming bar accepts) message;text:Hello;; message;text:Message from bar: sender:bar;time: 02/08/2010 20\:13\:37;; quit;; ok:quit;;
Background image of page 8
9 Different groups may write clients and servers at different times. Central registry for Internet protocols
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/16/2011 for the course CS 580 taught by Professor Rogerwhitney during the Spring '11 term at Community college of RI.

Page1 / 52

ProtocolHTTPPOP - CS 580 Client-Server Programming Spring...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online