draft for socket protocol design