Sunday, August 8, 2010

protocol implementation

basic requirements

each layer of the protocol has a control block, and a set of callback functions and call forward functions

control block to store all the protocol related variables
callback functions for the lower layer to call into this layer
call forward functions to call into the lower layer

inaddition to this sublayering can be done in each layer


effectively top layer should handle serialization, and each lower layer handles only discontinuities

queues might be required at each layers

pre allocated buffers can be allocated for data

mostly cannot do away with dynamic allocation because there will be some linked list structures

if these can be populated during initialization all is good, otherwise need to handle systemwide
discontinuity

No comments:

Post a Comment