A survey on consensus protocols in Multi-agent systems