Protocol Core and channel base

Core of the protocol, and base of the sound channel