Sign In/My Account | View Cart  
advertisement

Article:
 Protocol Design: How Many Bytes?
Subject: Protocol design.
Date: 2003-12-01 08:58:15
From: Itamar Shtull-Trauring
Response to: Protocol design.

At some point I might look in detail at a specific protocol or two and go through their design from the ground up.


Using type and length prefixing is a reasonable design. For matching up responses, using an id for messages is the common practice when responses are optional or may come back in different order than requests. Depending on your protocol structure it might be part of the message header or part of the message contents.


For example, in Banana (http://twistedmatrix.com/documents/TwistedDocs/current/specifications/banana.html -- currently undergoing rewrite but this is still pretty relevant), messages are nested lists, so a protocol built on top of it might say "first item in top-level message list is the message id".


I'll be covering these issues and more in future articles.


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Titles Only Oldest First
  • Protocol design.
    2006-04-28 22:09:50 hyderabda [Reply]

    i want to know the about protocal and how many protocal r using and what is the prot number of each protocals.
    pls let me know this.


    with regads,
    M.srinivas


Sponsored By: