Cyber Physical System & Protocol Optimization