framwork for C/S communication protocol stack